applicationmanagement/server/inc/appmgmtnotifier.h
changeset 42 aa33c2cb9a50
equal deleted inserted replaced
41:c742e1129640 42:aa33c2cb9a50
       
     1 /*
       
     2  * Copyright (c) 2000 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: Implementation of applicationmanagement components
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef APPMGMTNOTIFIERS_H_
       
    19 #define APPMGMTNOTIFIERS_H_
       
    20 
       
    21 #include <QObject>
       
    22 #include <hbdevicenotificationdialog.h>
       
    23 #include <hbdocumentloader.h>
       
    24 #include <hbdialog.h>
       
    25 #include <hblabel.h>
       
    26 #include <hbaction.h>
       
    27 #include <hbcombobox.h>
       
    28 #include "AMDeploymentComponent.h"
       
    29 
       
    30 using namespace NApplicationManagement;
       
    31 
       
    32 class AppMgmtNotifier : public QWidget
       
    33     {
       
    34     Q_OBJECT
       
    35     
       
    36 public:
       
    37     AppMgmtNotifier(QString aAppName = 0);
       
    38     ~AppMgmtNotifier();
       
    39     
       
    40     void getAvailableDrives();
       
    41     void showInstallSuccessNote();
       
    42     void showInstallFailedNote();
       
    43     void showUninstallDialog(const CDeploymentComponent &aCompo, TRequestStatus &s);
       
    44     void showInstallDialog(CDeploymentComponent *aCompo, TRequestStatus &s);
       
    45     void showUnInstallSuccessNote();
       
    46     void showUnInstallFailedNote();
       
    47     bool showDownloadFailedNote(QString aNotifierdata);
       
    48     void showDownloadSuccessNote();
       
    49     void sendServerToBackground();
       
    50     void bringServerToForeground();
       
    51     void registerStatus(TRequestStatus &stat);
       
    52 public slots:
       
    53     void dlgSlot(HbAction* action);
       
    54     void dialogUnSlot(HbAction* action);
       
    55     void successSlot(HbAction* reaction);
       
    56     void defaultDriveChanged(int i);
       
    57 private:
       
    58     CDeploymentComponent* iComp;
       
    59     TRequestStatus *iStat;
       
    60     
       
    61     QString m_appname; 
       
    62     HbAction* m_OkButton;
       
    63     HbAction* m_Cancel;
       
    64     HbDialog* m_Dialog;  
       
    65     TBuf<256> m_Drilist;
       
    66     TRequestStatus* m_Stat;
       
    67     HbComboBox* m_DriveBox;   
       
    68     };
       
    69 //}
       
    70 #endif /* APPMGMTNOTIFIERS_H_ */