1 /** @file |
|
2 * Copyright (c) 2005-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: Common data |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_UPNPAVCPENGINECOMMON_H |
|
20 #define C_UPNPAVCPENGINECOMMON_H |
|
21 |
|
22 //INCLUDES |
|
23 #include <e32base.h> |
|
24 |
|
25 |
|
26 // CONSTANTS |
|
27 // Server name |
|
28 _LIT( KAVCPEngineName, "AVCPEngine" ); |
|
29 // Filename |
|
30 _LIT( KAVCPEngineFilename, "AVCPEngine" ); |
|
31 |
|
32 _LIT8( KAVCPEngineFriendlyName, "friendlyName" ); |
|
33 |
|
34 |
|
35 // The server version. A version must be specified when |
|
36 // creating a session with the server |
|
37 const TUint KAVCPEngineMajorVersionNumber=0; |
|
38 const TUint KAVCPEngineMinorVersionNumber=1; |
|
39 const TUint KAVCPEngineBuildVersionNumber=1; |
|
40 |
|
41 // ENUMERATIONS |
|
42 |
|
43 // Operation codes used in message passing between client and server |
|
44 enum TAVCPEngineRqst |
|
45 { |
|
46 EPrepareDeviceList, |
|
47 EDownloadDeviceList, |
|
48 EPrepareDirList, |
|
49 EDownloadDirList, |
|
50 EDirAttributes, |
|
51 EFileAttributes, |
|
52 EGetFile, |
|
53 EDeleteDirectory, |
|
54 EDeleteFile, |
|
55 ECreateDirectory, |
|
56 ECreateFile, |
|
57 EPutFile, |
|
58 EPrepareMetadata, |
|
59 EDownloadMetadata, |
|
60 ESetMetadata |
|
61 }; |
|
62 |
|
63 // maximum length of UDN |
|
64 const TInt KUUIDLength = 50; |
|
65 // maximum length of friendly-name |
|
66 const TInt KFriendlyNameLength = 50; |
|
67 // maximum length of mime type |
|
68 const TInt KMimeLength = 100; |
|
69 |
|
70 // structure describing MS device |
|
71 class TAVDevice |
|
72 { |
|
73 public: |
|
74 TBuf8<KFriendlyNameLength> iFriendlyName; |
|
75 TBuf8<KUUIDLength> iUDN; |
|
76 }; |
|
77 // structure describing position in file, used for partial read |
|
78 class TFilePosition |
|
79 { |
|
80 public: |
|
81 TInt iStart; |
|
82 TInt iLength; |
|
83 TBool iFlags; |
|
84 }; |
|
85 |
|
86 // structure describing file/directory |
|
87 class TFileInfo |
|
88 { |
|
89 public: |
|
90 inline TFileInfo(); |
|
91 // file/directory name |
|
92 TBuf8<KMaxFileName> iName; |
|
93 // MIME type |
|
94 TBuf8<KMimeLength> iMimeType; |
|
95 // attribute bits |
|
96 TUint iAtt; |
|
97 // file size in bytes |
|
98 TInt iSize; |
|
99 // last modified |
|
100 TTime iModified; |
|
101 }; |
|
102 |
|
103 #include "upnpavcpenginecommon.inl" |
|
104 |
|
105 #endif // C_UPNPAVCPENGINECOMMON_H |
|
106 |
|
107 // End Of File |
|