21
|
1 |
/*
|
|
2 |
* Copyright (c) 2002-2004 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: Client side API
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
#ifndef NEWFILESERVICECLIENT_H
|
|
21 |
#define NEWFILESERVICECLIENT_H
|
|
22 |
|
|
23 |
// INCLUDES
|
|
24 |
#include <NewFileService.hrh>
|
|
25 |
#include <e32std.h>
|
|
26 |
#include <badesca.h>
|
|
27 |
#include <AknServerApp.h>
|
|
28 |
|
|
29 |
// FORWARD DECLARATIONS
|
|
30 |
class RFile;
|
|
31 |
class CApaServerAppExitMonitor;
|
|
32 |
class CNewFileServiceClient;
|
|
33 |
class CAiwGenericParamList;
|
|
34 |
|
|
35 |
// CLASS DECLARATION
|
|
36 |
|
|
37 |
|
|
38 |
class NewFileServiceFactory
|
|
39 |
{
|
|
40 |
public:
|
|
41 |
IMPORT_C static CNewFileServiceClient* NewClientL();
|
|
42 |
};
|
|
43 |
|
|
44 |
/**
|
|
45 |
* Client side API for New File Service
|
|
46 |
*
|
|
47 |
* @lib NewService.lib
|
|
48 |
* @since Series 60 3.0
|
|
49 |
*/
|
|
50 |
class CNewFileServiceClient : public CBase
|
|
51 |
{
|
|
52 |
|
|
53 |
public: // New functions
|
|
54 |
|
|
55 |
/**
|
|
56 |
* Create new media file
|
|
57 |
* @since Series 60 3.0
|
|
58 |
* @param aApplicationUid Uid for the server application
|
|
59 |
* @param aFileNames Array for the created media files
|
|
60 |
* @param aParams Parameters for the operation
|
|
61 |
* @param aFileType Type of media file requested
|
|
62 |
* @param aMultipleFiles Multiple files can be created
|
|
63 |
* @return ETrue if new file was succesfully created
|
|
64 |
*/
|
|
65 |
virtual TBool NewFileL( CDesCArray& aFileNames,
|
|
66 |
CAiwGenericParamList* aParams,
|
|
67 |
TNewServiceFileType aFileType,
|
|
68 |
TBool aMultipleFiles ) = 0;
|
|
69 |
virtual TBool NewFileL( TUid aApplicationUid,
|
|
70 |
CDesCArray& aFileNames,
|
|
71 |
CAiwGenericParamList* aParams,
|
|
72 |
TNewServiceFileType aFileType,
|
|
73 |
TBool aMultipleFiles ) = 0;
|
|
74 |
|
|
75 |
|
|
76 |
/**
|
|
77 |
* NOTE: When you pass file handles to new file service,
|
|
78 |
* the handle should be opened using ShareProtected()
|
|
79 |
* file session, otherwise handles can't be transfered through
|
|
80 |
* client-server interface.
|
|
81 |
*/
|
|
82 |
|
|
83 |
/**
|
|
84 |
* Create new media file
|
|
85 |
* @since Series 60 3.0
|
|
86 |
* @param aApplicationUid Uid for the server application
|
|
87 |
* @param aFile File handle for the media file
|
|
88 |
* @param aParams Parameters for the operation
|
|
89 |
* @param aFileType Type of media file requested
|
|
90 |
* @return ETrue if new file was succesfully created
|
|
91 |
*/
|
|
92 |
virtual TBool NewFileL( RFile& aFileHandle,
|
|
93 |
CAiwGenericParamList* aParams,
|
|
94 |
TNewServiceFileType aFileType ) = 0;
|
|
95 |
|
|
96 |
virtual TBool NewFileL( TUid aApplicationUid,
|
|
97 |
RFile& aFileHandle,
|
|
98 |
CAiwGenericParamList* aParams,
|
|
99 |
TNewServiceFileType aFileType ) = 0;
|
|
100 |
|
|
101 |
|
|
102 |
|
|
103 |
};
|
|
104 |
|
|
105 |
#endif // NEWFILESERVICECLIENT_H
|
|
106 |
|
|
107 |
// End of File
|