deviceupdatesui/deviceupdates/inc/dmfotaview.h
changeset 67 fdbfe0a95492
parent 62 03849bd79877
equal deleted inserted replaced
62:03849bd79877 67:fdbfe0a95492
    35 #include <centralrepository.h>
    35 #include <centralrepository.h>
    36 #include <QTranslator>
    36 #include <QTranslator>
    37 #include <nsmldmdef.h>
    37 #include <nsmldmdef.h>
    38 #include <fotaengine.h>
    38 #include <fotaengine.h>
    39 #include "dminforetrieval.h"
    39 #include "dminforetrieval.h"
       
    40 #include "dmserviceprovider.h"
    40 #include "deviceupdatemoniterobserver.h"
    41 #include "deviceupdatemoniterobserver.h"
    41 //_LIT( KSmlEOL,      "\n" );
    42 //_LIT( KSmlEOL,      "\n" );
    42 const TUid KControlPanelAppUid ={0x20025fd9};
    43 enum {
       
    44     EQtHighwayLaunch = 6
       
    45 };
    43 
    46 
    44 class HbDialog;
    47 class HbDialog;
    45 class HbPushButton;
    48 class HbPushButton;
    46 class DmAdvancedView;
    49 class DmAdvancedView;
    47 class CDeviceUpdateMoniter;
    50 class CDeviceUpdateMoniter;
    48 
    51 
    49 class DMFotaView : public HbView, public MDeviceMoniterObserver
    52 class DMFotaView : public HbView, public MDeviceMoniterObserver
    50     {
    53     {
    51     Q_OBJECT
    54     Q_OBJECT
    52 public:
    55 public:
    53     DMFotaView(HbMainWindow *mainWindow);
    56     DMFotaView(HbMainWindow *aMainWindow,DMServiceProvider* aService=NULL);
    54     virtual ~DMFotaView();
    57     virtual ~DMFotaView();
    55     bool addFotaView();
    58     bool addFotaView();
    56     //HbDialog* createDialog() const;
       
    57     void displayNoteAndDisableButtons();
    59     void displayNoteAndDisableButtons();
    58     void enableButtons();
    60     void enableButtons();
    59     
    61     
    60 signals :
    62 signals :
    61 	/**
    63 	/**
    64    void applicationReady();
    66    void applicationReady();
    65 public slots :
    67 public slots :
    66     void OnHelp();
    68     void OnHelp();
    67     void OnExit();
    69     void OnExit();
    68 	void CheckforUpdate();
    70 	void CheckforUpdate();
    69 	void AdvancedDeviceManager(bool launchadvanceview = true);	
    71 	void AdvancedDeviceManager(bool aLaunchadvanceview = true);	
    70 	void backtoMainWindow();
    72 	void backtoMainWindow();
    71 	void readSection( Qt::Orientation orientation );
    73 	void readSection( Qt::Orientation aOrientation );
    72 	void ResumeUpdate();
    74 	void ResumeUpdate();
    73 public:
    75 public:
    74 	void UpdateDMUI(TBool aVal);
    76 	void UpdateDMUI(TBool aVal);
    75 private:
    77 private:
    76     void FormatList(QString val, QString str);
    78     void FormatList(QString aVal, QString aStr);
    77     RFotaEngineSession& FotaEngineL();
    79     RFotaEngineSession& FotaEngineL();
    78     void fotaSupportEnabled();
    80     void fotaSupportEnabled();
    79 private:
    81 private:
    80 	HbMainWindow* mMainWindow;
    82 	HbMainWindow* mMainWindow;
    81 	HbView* fotaPortraitView;
    83 	HbView* mFotaPortraitView;
    82 	HbView* fotaLandscapeView;
    84 	HbView* mFotaLandscapeView;
    83 	DmAdvancedView* profilesView;
    85 	DmAdvancedView* mProfilesView;
    84 	HbAction    *mSoftKeyBackAction;
    86 	HbAction    *mSoftKeyBackAction;
    85     RSyncMLSession iSession;
    87     RSyncMLSession iSession;
    86     RSyncMLDevManProfile profile;
    88     RSyncMLDevManProfile iProfile;
    87     RSyncMLDevManJob iSyncJob;
    89     RSyncMLDevManJob iSyncJob;
    88     QTranslator* mTranslator;
    90     QTranslator* mTranslator;
    89     HbLabel *label,*label2,*label3,*label4;
    91     HbLabel *mLabel,*mLabel2,*mLabel3,*mLabel4;
    90     QStringList list1,list2;
    92     QStringList mList1,mList2;
    91     TInt i;   
    93     TInt iCount;   
    92     DmInfo* mainDmInfo;
    94     DMServiceProvider* mService;
    93     HbDocumentLoader loader,loader2;
    95     DmInfo* iMainDmInfo;
    94     HbPushButton *updateButton;
    96     HbDocumentLoader mLoader,mLoader2;
    95     TInt fotaValue;
    97     HbPushButton *mUpdateButton;
    96     HbPushButton *advancedButton;
    98     TInt iFotaValue;
    97     HbPushButton *updateButtonLandscape;
    99     HbPushButton *mAdvancedButton;
    98     HbPushButton *advancedButtonLandscape;
   100     HbPushButton *mUpdateButtonLandscape;
       
   101     HbPushButton *mAdvancedButtonLandscape;
    99     
   102     
   100     RFotaEngineSession iFotaEngine;
   103     RFotaEngineSession iFotaEngine;
   101     RFotaEngineSession::TState iFotaState;
   104     RFotaEngineSession::TState iFotaState;
   102     
   105     
   103     CDeviceUpdateMoniter * iMoniter;
   106     CDeviceUpdateMoniter * iMoniter;
   104     TBool Connected;
   107     TBool iConnected;
   105     };
   108     };
   106     
   109     
   107 
   110 
   108 #endif
   111 #endif