creator/inc/notifications.h
changeset 28 4cc0d1a608c1
parent 27 271e901a9423
child 51 b048e15729d6
equal deleted inserted replaced
27:271e901a9423 28:4cc0d1a608c1
    54 	/**
    54 	/**
    55      * to shows progressbar
    55      * to shows progressbar
    56      */
    56      */
    57 	static HbProgressDialog* showProgressBar(const QString& text, int max);
    57 	static HbProgressDialog* showProgressBar(const QString& text, int max);
    58 	
    58 	
    59 	/**
       
    60 	* Entries query dialog
       
    61 	*/
       
    62 	static bool entriesQueryDialog(int& numberOfEntries, const QString& text, bool acceptsZero);
       
    63     
       
    64 	/**
       
    65 	* Time query dialog
       
    66 	*/
       
    67     static bool timeQueryDialog(QDate& date, const QString& text);
       
    68 
       
    69 	/**
       
    70 	* Yes or No query dialog
       
    71 	*/    
       
    72     static bool yesNoQueryDialog(const QString& text);
       
    73 	
       
    74 	/**
       
    75 	* popup list dialog for selecting one item from list
       
    76 	*/
       
    77 	static void popupListDialog(const QString& text, QStringList& items, HbAbstractItemView::SelectionMode mode, QObject* receiver = 0, const char* member = 0);
       
    78 	
       
    79 	/**
       
    80 	* directory query dialog
       
    81 	*/
       
    82 	static bool directoryQueryDialog(const QString& text, QString& directory);
       
    83 
       
    84     /**
    59     /**
    85      * shows global HbGlobalCommonNote type note
    60      * shows global HbGlobalCommonNote type note
    86      */
    61      */
    87 	static void showGlobalNote(const QString& text, HbMessageBox::MessageBoxType type, HbPopup::DefaultTimeout timeout = HbPopup::ConfirmationNoteTimeout);
    62 	static void showGlobalNote(const QString& text, HbMessageBox::MessageBoxType type, HbPopup::DefaultTimeout timeout = HbPopup::ConfirmationNoteTimeout);
    88     };
    63     };
   127 {
   102 {
   128     Q_DISABLE_COPY(CreatorInputDialog)
   103     Q_DISABLE_COPY(CreatorInputDialog)
   129     Q_OBJECT
   104     Q_OBJECT
   130 public:
   105 public:
   131     static void launch(const QString& label, int* value, bool acceptZero,  MUIObserver* observer, int userData) throw( std::exception );
   106     static void launch(const QString& label, int* value, bool acceptZero,  MUIObserver* observer, int userData) throw( std::exception );
       
   107     static void launch(const QString& label, TDes& value,  MUIObserver* observer, int userData) throw( std::exception );
   132 protected:
   108 protected:
   133     CreatorInputDialog(int*value, MUIObserver* observer, int userData);
   109     CreatorInputDialog(int* value, MUIObserver* observer, int userData);
       
   110     CreatorInputDialog(TDes& value, MUIObserver* observer, int userData);
   134 protected slots:
   111 protected slots:
   135     void DialogClosed(HbAction*);
   112     void DialogClosed(HbAction*);
   136 private:
   113 private:
   137     int *mValue;
   114     int *mIntValue;
       
   115     TDes& mStrValue;
       
   116     TBuf<1> mDummy;
   138 };
   117 };
   139 
   118 
   140 class CreatorSelectionDialog : public HbSelectionDialog, public CreatorDialog
   119 class CreatorSelectionDialog : public HbSelectionDialog, public CreatorDialog
   141 {
   120 {
   142     Q_DISABLE_COPY(CreatorSelectionDialog)
   121     Q_DISABLE_COPY(CreatorSelectionDialog)