53 bool clearList(LogsModel::ClearType cleartype); |
55 bool clearList(LogsModel::ClearType cleartype); |
54 |
56 |
55 int clearEvents(const QList<int>& eventIds, bool& async); |
57 int clearEvents(const QList<int>& eventIds, bool& async); |
56 |
58 |
57 protected: // from CActive |
59 protected: // from CActive |
58 |
60 |
59 void DoCancel(); |
|
60 void RunL(); |
|
61 TInt RunError(TInt aError); |
61 TInt RunError(TInt aError); |
62 |
62 |
|
63 private: // From LogsRemoveStateContext |
|
64 |
|
65 inline LogsRemoveObserver& observer(); |
|
66 inline QList<int>& removedEvents(); |
|
67 inline int clearType(); |
|
68 |
63 private: |
69 private: |
64 |
70 |
65 void initL(); |
71 void initL(); |
|
72 bool clearListL(LogsModel::ClearType cleartype); |
66 void clearEventsL(const QList<int>& eventIds, bool& async); |
73 void clearEventsL(const QList<int>& eventIds, bool& async); |
67 bool DeleteNextEvent(); |
74 void initializeClearAllL(); |
|
75 void initializeIdBasedRemovalL(); |
|
76 bool startClearingL(); |
68 |
77 |
69 private: // data |
78 private: // data |
70 LogsRemoveObserver& mObserver; |
79 LogsRemoveObserver& mObserver; |
71 bool mReadingAllEvents; |
80 QList<int> mRemovedEvents; |
|
81 |
|
82 RFs* mFsSession; |
72 |
83 |
73 QList<int> mRemovedEvents; |
84 int mClearType; |
74 CLogClient* mLogClient; |
85 QList<LogsStateBase*> mRemoveStates; |
75 CLogViewRecent* mRecentView; |
86 QList<LogsStateBase*> mClearAllStates; |
76 RFs* mFsSession; |
87 |
77 }; |
88 }; |
78 |
89 |
79 |
90 |
80 #endif // LOGSREMOVE_H |
91 #endif // LOGSREMOVE_H |