equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 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 header file between TNE client and TNE server |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef _HX_TNE_Client_Server_Common_H_ |
|
21 #define _HX_TNE_Client_Server_Common_H_ |
|
22 |
|
23 #include <e32base.h> |
|
24 #include <GDI.H> |
|
25 #include <FBS.H> |
|
26 |
|
27 |
|
28 // server name |
|
29 |
|
30 _LIT(KTneServerName, "HLXTNESERVER"); |
|
31 |
|
32 // A version must be specifyed when creating a session with the server |
|
33 |
|
34 const TUint KTNEServMajorVersionNumber=0; |
|
35 const TUint KTNEServMinorVersionNumber=1; |
|
36 const TUint KTNEServBuildVersionNumber=1; |
|
37 |
|
38 TInt StartThread(RThread& aServerThread, HBufC *pServerName); |
|
39 |
|
40 // TNEMetaData is used by client to fetch metadata from the server |
|
41 struct TNEMetaData |
|
42 { |
|
43 TInt iWidth; |
|
44 TInt iHeight; |
|
45 TInt64 iFrameCount; |
|
46 }; |
|
47 |
|
48 // TNEThumbRequest is used by client to send the GetThumb request to |
|
49 // the server. |
|
50 |
|
51 struct TNEThumbRequest |
|
52 { |
|
53 TInt iIndex; |
|
54 TUint8* iYUVBuffer; |
|
55 }; |
|
56 |
|
57 // Function codes (opcodes) used in message passing between client and server |
|
58 enum TTNEServRqst |
|
59 { |
|
60 EOpenFileRFmsg=0, |
|
61 EOpenFIleNamemsg, |
|
62 EGetThumbmsg, |
|
63 EGetMetaDatamsg, |
|
64 ECancelThumbmsg |
|
65 }; |
|
66 |
|
67 |
|
68 |
|
69 #endif // _HX_TNE_Client_Server_Common_H_ |