equal
deleted
inserted
replaced
51 NONSHARABLE_CLASS( MCalenDBUser ) |
51 NONSHARABLE_CLASS( MCalenDBUser ) |
52 { |
52 { |
53 public: |
53 public: |
54 virtual void DatabaseOpened() = 0; |
54 virtual void DatabaseOpened() = 0; |
55 virtual void DatabaseTemporarilyClosed() = 0; |
55 virtual void DatabaseTemporarilyClosed() = 0; |
|
56 virtual void HandleError() = 0; |
56 }; |
57 }; |
57 |
58 |
58 public: // Construction and destruction |
59 public: // Construction and destruction |
59 static CCalenSvrDBManager* NewL(); |
60 static CCalenSvrDBManager* NewL(); |
60 virtual ~CCalenSvrDBManager(); |
61 virtual ~CCalenSvrDBManager(); |
82 void Completed(TInt aError); |
83 void Completed(TInt aError); |
83 TBool NotifyProgress(); |
84 TBool NotifyProgress(); |
84 void Progress(TInt aPercentageCompleted); |
85 void Progress(TInt aPercentageCompleted); |
85 |
86 |
86 private: |
87 private: |
87 void OpenDatabaseCompletedL(); |
88 void OpenDatabaseCompletedL(TInt aErrorVal = KErrNone); |
88 |
89 |
89 private: // Timer handling |
90 private: // Timer handling |
90 void StartClosingTimer(); |
91 void StartClosingTimer(); |
91 void ClosingTimeOut(); |
92 void ClosingTimeOut(); |
92 static TInt ClosingTimeOutCallback(TAny* aAny); |
93 static TInt ClosingTimeOutCallback(TAny* aAny); |
101 |
102 |
102 private: // new functions |
103 private: // new functions |
103 /** |
104 /** |
104 * |
105 * |
105 **/ |
106 **/ |
106 void NotifyUsersL(); |
107 void NotifyUsersL(TInt aErrorVal = KErrNone); |
107 |
108 |
108 private: |
109 private: |
109 enum TState |
110 enum TState |
110 { |
111 { |
111 EStateBooting, // FIXME: if unregister works correctly this is not needed |
112 EStateBooting, // FIXME: if unregister works correctly this is not needed |