DatePickerClient.h [plain text]
#ifndef DatePickerClient_h
#define DatePickerClient_h
#include "PagePopupClient.h"
#include <BlackBerryPlatformInputEvents.h>
#include <unicode/udat.h>
namespace WebCore {
class HTMLInputElement;
}
namespace BlackBerry {
namespace Platform {
class String;
}
namespace WebKit {
class WebPagePrivate;
class DatePickerClient : public PagePopupClient {
public:
DatePickerClient(BlackBerry::Platform::BlackBerryInputType, const BlackBerry::Platform::String& value, const BlackBerry::Platform::String& min, const BlackBerry::Platform::String& max, double step, WebPagePrivate*, WebCore::HTMLInputElement*);
~DatePickerClient();
void setValueAndClosePopup(const String&);
void didClosePopup();
private:
void generateHTML(BlackBerry::Platform::BlackBerryInputType, const BlackBerry::Platform::String& value, const BlackBerry::Platform::String& min, const BlackBerry::Platform::String& max, double step);
static const String generateDateLabels(UDateFormatSymbolType);
BlackBerry::Platform::BlackBerryInputType m_type;
RefPtr<WebCore::HTMLInputElement> m_element;
};
}
}
#endif