|
1 // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #if !defined(__MSVCOP_H__) |
|
17 #define __MSVCOP_H__ |
|
18 |
|
19 #if !defined(__E32BASE_H__) |
|
20 #include <e32base.h> |
|
21 #endif |
|
22 |
|
23 #if !defined(__MCLIENT_H__) |
|
24 #include <msvapi.h> |
|
25 #endif |
|
26 |
|
27 #include <tmsvsystemprogress.h> |
|
28 |
|
29 //********************************** |
|
30 // CMsvEntryOperation |
|
31 //********************************** |
|
32 // |
|
33 // The main operation used in the server |
|
34 // |
|
35 |
|
36 class CMsvEntryOperation : public CMsvOperation |
|
37 /** |
|
38 @internalComponent |
|
39 @released |
|
40 */ |
|
41 { |
|
42 public: |
|
43 ~CMsvEntryOperation(); |
|
44 const TDesC8& ProgressL(); |
|
45 const TDesC8& FinalProgress(); |
|
46 // |
|
47 protected: |
|
48 static CMsvEntryOperation* NewL(CMsvSession& aMsvSession, TRequestStatus& aObserverRequestStatus); |
|
49 static CMsvEntryOperation* NewLC(CMsvSession& aMsvSession, TRequestStatus& aObserverRequestStatus); |
|
50 CMsvEntryOperation(CMsvSession& aMsvSession, TRequestStatus& aObserverRequestStatus); |
|
51 void ConstructL(); |
|
52 // |
|
53 void Start(); |
|
54 void DoCancel(); |
|
55 void RunL(); |
|
56 // |
|
57 IMPORT_C TInt Extension_(TUint aExtensionId, TAny *&a0, TAny *a1); |
|
58 // |
|
59 private: |
|
60 TInt DoGetSystemProgress(TMsvSystemProgress& aOutSysProg); |
|
61 private: |
|
62 HBufC8* iProgress; |
|
63 TMsvSystemProgress iSystemProgress; |
|
64 TInt iErrorGetSystemProgress; |
|
65 // |
|
66 friend class CMsvEntry; |
|
67 friend class CMsvSession; |
|
68 }; |
|
69 |
|
70 |
|
71 #endif |