launcher/inc/notifications.h
branchRCL_3
changeset 19 b3cee849fa46
equal deleted inserted replaced
18:48060abbbeaf 19:b3cee849fa46
       
     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 #ifndef NOTIFICATIONS_H_
       
    19 #define NOTIFICATIONS_H_
       
    20 
       
    21 #include <hbmessagebox.h>
       
    22 #include <hbdeviceprogressdialog.h>
       
    23 
       
    24 
       
    25 class Notifications
       
    26     {
       
    27 public:
       
    28 
       
    29     /**
       
    30      * shows message box of the specified type with text and label
       
    31      */
       
    32     static void showMessageBox(
       
    33         HbMessageBox::MessageBoxType type, 
       
    34         const QString &text, 
       
    35         const QString &label, 
       
    36         int timeout = HbPopup::NoTimeout
       
    37         );
       
    38     
       
    39     /**
       
    40      * shows about box
       
    41      */
       
    42     static void about();
       
    43 
       
    44     /**
       
    45      * shows information type message box
       
    46      */
       
    47     static void showInformationNote(const QString &text);
       
    48 
       
    49     /**
       
    50      * shows warning type message box
       
    51      */
       
    52     static void showErrorNote(const QString &text);
       
    53     
       
    54      /**
       
    55      * shows progressbar
       
    56      */
       
    57     static HbDeviceProgressDialog* showWaitDialog(const QString &text);
       
    58 
       
    59     
       
    60     };
       
    61 
       
    62 
       
    63 
       
    64 #endif // NOTIFICATIONS_H_