diff -r 64a47b97e1e1 -r f27aebe284bb logsui/logsengine/logssymbianos/inc/logsremove.h --- a/logsui/logsengine/logssymbianos/inc/logsremove.h Tue Jul 06 14:16:36 2010 +0300 +++ b/logsui/logsengine/logssymbianos/inc/logsremove.h Wed Aug 18 09:49:12 2010 +0300 @@ -19,7 +19,9 @@ #include #include +#include "logsworker.h" #include "logsmodel.h" +#include "logsremovestatecontext.h" // FORWARDS DECLARATIONS class CLogClient; @@ -31,7 +33,7 @@ /** * Clearing class. */ -class LogsRemove : public CActive +class LogsRemove : public LogsWorker, public LogsRemoveStateContext { public: friend class UT_LogsRemove; @@ -55,25 +57,34 @@ int clearEvents(const QList& eventIds, bool& async); protected: // from CActive - - void DoCancel(); - void RunL(); + TInt RunError(TInt aError); + private: // From LogsRemoveStateContext + + inline LogsRemoveObserver& observer(); + inline QList& removedEvents(); + inline int clearType(); + private: void initL(); + bool clearListL(LogsModel::ClearType cleartype); void clearEventsL(const QList& eventIds, bool& async); - bool DeleteNextEvent(); + void initializeClearAllL(); + void initializeIdBasedRemovalL(); + bool startClearingL(); private: // data LogsRemoveObserver& mObserver; - bool mReadingAllEvents; + QList mRemovedEvents; + + RFs* mFsSession; - QList mRemovedEvents; - CLogClient* mLogClient; - CLogViewRecent* mRecentView; - RFs* mFsSession; + int mClearType; + QList mRemoveStates; + QList mClearAllStates; + };