creator/inc/notifications.h
changeset 17 4f2773374eff
child 19 4b22a598b890
child 24 6053b7ae82ab
equal deleted inserted replaced
15:e11368ed4880 17:4f2773374eff
       
     1 /*
       
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef NOTIFICATIONS_H_
       
    20 #define NOTIFICATIONS_H_
       
    21 
       
    22 #include <hbmessagebox.h>
       
    23 #include <hbselectiondialog.h>
       
    24 
       
    25 class HbProgressDialog;
       
    26 class HbPopup;
       
    27 
       
    28 class Notifications : public HbPopup
       
    29     {
       
    30 
       
    31 	Q_OBJECT 	
       
    32 	
       
    33 public:
       
    34     /**
       
    35      * shows massage box
       
    36      */
       
    37 	static void showMessageBox(HbMessageBox::MessageBoxType type, const QString &text, const QString &label, int timeout );
       
    38 	
       
    39     /**
       
    40      * shows about box
       
    41      */
       
    42     static void about();
       
    43     
       
    44     /** 
       
    45      * shows error message 
       
    46      */
       
    47     static void error(const QString& errorMessage);
       
    48 	
       
    49 	/**
       
    50      * to shows progressbar
       
    51      */
       
    52 	static HbProgressDialog* showProgressBar(const QString& text, int max);
       
    53 	
       
    54 	/**
       
    55 	* Entries query dialog
       
    56 	*/
       
    57 	static bool entriesQueryDialog(int& numberOfEntries, const QString& text, bool acceptsZero);
       
    58     
       
    59 	/**
       
    60 	* Time query dialog
       
    61 	*/
       
    62     static bool timeQueryDialog(QDate& date, const QString& text);
       
    63 
       
    64 	/**
       
    65 	* Yes or No query dialog
       
    66 	*/    
       
    67     static bool yesNoQueryDialog(const QString& text);
       
    68 	
       
    69 	/**
       
    70 	* popup list dialog for selecting one item from list
       
    71 	*/
       
    72 	static void popupListDialog(const QString& text, QStringList& items, HbAbstractItemView::SelectionMode mode, QObject* receiver = 0, const char* member = 0);
       
    73 	
       
    74 	/**
       
    75 	* directory query dialog
       
    76 	*/
       
    77 	static bool directoryQueryDialog(const QString& text, QString& directory);
       
    78 
       
    79     /**
       
    80      * shows global HbGlobalCommonNote type note
       
    81      */
       
    82 	static void showGlobalNote(const QString& text, HbMessageBox::MessageBoxType type, HbPopup::DefaultTimeout timeout = HbPopup::ConfirmationNoteTimeout);
       
    83     };
       
    84 
       
    85 
       
    86 
       
    87 #endif // NOTIFICATIONS_H_