|
1 /* |
|
2 * Copyright (c) 2002-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: Implementation for client side API |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef NEWFILESERVICECLIENTIMPL_H |
|
21 #define NEWFILESERVICECLIENTIMPL_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <NewFileService.hrh> |
|
25 #include <e32std.h> |
|
26 #include <badesca.h> |
|
27 #include <AknServerApp.h> |
|
28 #include <NewFileServiceClient.h> |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 class RFile; |
|
32 class CApaServerAppExitMonitor; |
|
33 class CAiwGenericParamList; |
|
34 |
|
35 // CLASS DECLARATION |
|
36 |
|
37 /** |
|
38 * Actual implementation class for client side API |
|
39 * |
|
40 * @lib NewService.lib |
|
41 * @since Series 60 3.0 |
|
42 */ |
|
43 class CNewFileServiceClientImpl : public CNewFileServiceClient, |
|
44 public MAknServerAppExitObserver |
|
45 { |
|
46 |
|
47 public: // New functions |
|
48 |
|
49 static CNewFileServiceClientImpl* NewL(); |
|
50 |
|
51 ~CNewFileServiceClientImpl(); |
|
52 |
|
53 public: // From CNewFileServiceClient |
|
54 TBool NewFileL( CDesCArray& aFileNames, |
|
55 CAiwGenericParamList* aParams, |
|
56 TNewServiceFileType aFileType, |
|
57 TBool aMultipleFiles ); |
|
58 |
|
59 TBool NewFileL( TUid aApplicationUid, |
|
60 CDesCArray& aFileNames, |
|
61 CAiwGenericParamList* aParams, |
|
62 TNewServiceFileType aFileType, |
|
63 TBool aMultipleFiles ); |
|
64 |
|
65 TBool NewFileL( RFile& aFileHandle, |
|
66 CAiwGenericParamList* aParams, |
|
67 TNewServiceFileType aFileType ); |
|
68 |
|
69 TBool NewFileL( TUid aApplicationUid, |
|
70 RFile& aFileHandle, |
|
71 CAiwGenericParamList* aParams, |
|
72 TNewServiceFileType aFileType ); |
|
73 |
|
74 public: // from MApaServerAppExitObserver |
|
75 void HandleServerAppExit( TInt aReason ); |
|
76 |
|
77 private: |
|
78 |
|
79 void ConstructL(); |
|
80 |
|
81 HBufC8* SerializeGenericParamListLC( CAiwGenericParamList* aParams ); |
|
82 |
|
83 private: |
|
84 |
|
85 CApaServerAppExitMonitor* iServerAppMonitor; |
|
86 |
|
87 RNewFileServiceClient iClient; |
|
88 |
|
89 }; |
|
90 |
|
91 #endif // NEWFILESERVICECLIENTIMPL_H |
|
92 |
|
93 // End of File |