36 class DmInfo: public QObject, public MNSmlDMDbEventHandler |
36 class DmInfo: public QObject, public MNSmlDMDbEventHandler |
37 { |
37 { |
38 Q_OBJECT |
38 Q_OBJECT |
39 |
39 |
40 public: |
40 public: |
41 DmInfo(DmAdvancedView* serversview, QGraphicsItem *parent=0); |
41 DmInfo(DmAdvancedView* serversview=NULL, QGraphicsItem *parent=0); |
42 virtual ~DmInfo(); |
42 virtual ~DmInfo(); |
43 void refreshProfileList(TBool aIncludeHidden = ETrue); |
43 void refreshProfileList(TBool aIncludeHidden = ETrue); |
44 int profilescount(); |
44 int profilescount(); |
45 int profileinfo(int profilelistnum, QStringList& itemtext, int& icon, bool& lock); |
45 int profileinfo(int profilelistnum, QStringList& itemtext, int& icon, bool& lock); |
46 void setDefaultProfile(int listitem); |
46 void setDefaultProfile(int listitem); |
52 int saveProfile(QStringList& itemdata, bool& sessmode, QString& currap,unsigned int& portnum, bool& nauth ); |
52 int saveProfile(QStringList& itemdata, bool& sessmode, QString& currap,unsigned int& portnum, bool& nauth ); |
53 bool getProfiledata(int& itemnum, QStringList& itemdata, bool& sessmode, QStringList& iaplist, int& curriap, int& portnum, bool& nwauth); |
53 bool getProfiledata(int& itemnum, QStringList& itemdata, bool& sessmode, QStringList& iaplist, int& curriap, int& portnum, bool& nwauth); |
54 bool checksrvid(QString& serverid); |
54 bool checksrvid(QString& serverid); |
55 void getIaplist(QStringList& iaplist, int& iapselected, int& listindex); |
55 void getIaplist(QStringList& iaplist, int& iapselected, int& listindex); |
56 void synchronize(int& itemnum); |
56 void synchronize(int& itemnum); |
|
57 void sync(int aProfileId); |
57 void synccomplete(int); |
58 void synccomplete(int); |
58 /** |
59 /** |
59 * Handles DB events |
60 * Handles DB events |
60 * @param aEvent DB event |
61 * @param aEvent DB event |
61 * @return None |
62 * @return None |
62 */ |
63 */ |
63 void HandleDbEventL( TNSmlDMDbEvent aEvent ); |
64 void HandleDbEventL( TNSmlDMDbEvent aEvent ); |
64 |
65 TInt DefaultFotaProfileIdL() const; |
65 void DisableDbNotifications( TBool aEvent ); |
66 void DisableDbNotifications( TBool aEvent ); |
66 |
67 |
67 private: |
68 private: |
68 void GetProfiles( ); |
69 void GetProfiles( ); |
|
70 TInt findProfile(TInt aProfileId); |
69 void OpenSyncSession(); |
71 void OpenSyncSession(); |
70 TInt DefaultFotaProfileIdL() const; |
|
71 void SetDefaultFotaProfileIdL( const TInt aProfileId ); |
72 void SetDefaultFotaProfileIdL( const TInt aProfileId ); |
72 |
73 |
73 public slots: |
74 public slots: |
74 |
75 |
75 |
76 |