equal
deleted
inserted
replaced
|
1 /** |
|
2 * Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 /** |
|
21 @file |
|
22 */ |
|
23 |
|
24 |
|
25 #ifndef __CMTF_TEST_ACTION_UTILS_DELETE_ALL_CHILDREN_H__ |
|
26 #define __CMTF_TEST_ACTION_UTILS_DELETE_ALL_CHILDREN_H__ |
|
27 |
|
28 |
|
29 #include <e32base.h> |
|
30 #include <msvapi.h> |
|
31 #include <miutset.h> |
|
32 |
|
33 |
|
34 class CMtfTestActionUtilsDeleteAllChildren : public CActive |
|
35 { |
|
36 public: |
|
37 CMtfTestActionUtilsDeleteAllChildren(CMsvSession* aSession,TMsvId aParentId = KMsvRootIndexEntryId); |
|
38 ~CMtfTestActionUtilsDeleteAllChildren(); |
|
39 |
|
40 void StartL(TRequestStatus& aStatus); |
|
41 TInt Undeleted() {return (iUndeletedChildren);} |
|
42 |
|
43 protected: |
|
44 void DoCancel(); |
|
45 void RunL(); |
|
46 |
|
47 private: |
|
48 CMsvSession* iSession; |
|
49 TMsvId iParentId; |
|
50 CMsvEntry* iEntry; |
|
51 CMsvEntrySelection* iSelection; |
|
52 TRequestStatus* iRequestStatus; |
|
53 TInt iTotalChildren; |
|
54 TInt iCurrentChild; |
|
55 TInt iUndeletedChildren; |
|
56 CMsvOperation* iOperation; |
|
57 |
|
58 private: |
|
59 enum State |
|
60 { |
|
61 EStateThisLevel, |
|
62 EStateNextLevel, |
|
63 }; |
|
64 TInt iState; |
|
65 |
|
66 private: |
|
67 CMtfTestActionUtilsDeleteAllChildren* iNextLevel; |
|
68 }; |
|
69 |
|
70 |
|
71 #endif |