equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2006-2006 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: CActive-derived class for synchronizing server commands |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CNEWFILESERVICESERVEROBSERVER_H |
|
19 #define CNEWFILESERVICESERVEROBSERVER_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <e32base.h> |
|
23 |
|
24 // FORWARD DECLARATIONS |
|
25 class MNewFileServiceServerObserver; |
|
26 |
|
27 /** |
|
28 * CActive-derived class for synchronizing server commands |
|
29 * |
|
30 * @lib newservice.lib |
|
31 * @since S60 v3.0 |
|
32 */ |
|
33 NONSHARABLE_CLASS( CNewFileServiceServerObserver ) |
|
34 : public CActive |
|
35 { |
|
36 public: |
|
37 static CNewFileServiceServerObserver* NewL(); |
|
38 |
|
39 ~CNewFileServiceServerObserver(); |
|
40 |
|
41 /** |
|
42 * Wait until RunL is called from server |
|
43 * |
|
44 * @since S60 3.1 |
|
45 * @param aObserver The object that is notified when request completes |
|
46 * @return Reference to this objects TRequestStatus so that it can be |
|
47 * supplied to server |
|
48 */ |
|
49 TRequestStatus& IssueWait( MNewFileServiceServerObserver* aObserver ); |
|
50 |
|
51 private: // from base class CActive |
|
52 /** |
|
53 * From CActive |
|
54 */ |
|
55 void RunL(); |
|
56 void DoCancel(); |
|
57 |
|
58 protected: |
|
59 |
|
60 |
|
61 private: |
|
62 CNewFileServiceServerObserver(); |
|
63 |
|
64 void ConstructL(); |
|
65 |
|
66 private: // data |
|
67 MNewFileServiceServerObserver* iObserver; |
|
68 }; |
|
69 |
|
70 #endif // CNEWFILESERVICESERVEROBSERVER_H |