|
1 /* |
|
2 * Copyright (c) 2005-2009 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef OBEXAPPCONSTANTS_H |
|
19 #define OBEXAPPCONSTANTS_H |
|
20 |
|
21 /** |
|
22 * This file defines the constants that are used in the simpleObexApp |
|
23 * program. |
|
24 */ |
|
25 |
|
26 /* |
|
27 Casira address for OBEX over Bluetooth |
|
28 This value needs to be changed |
|
29 to the address that your OBEX server will listen on |
|
30 */ |
|
31 const TBTDevAddr devAddr(MAKE_TINT64(0x0002, 0x5b019a36)); |
|
32 /* The UUID for FTP in SDP. */ |
|
33 const TUUID ftpUuid(0x1106); |
|
34 |
|
35 /* This defines the size to expand the buffer by when additional space is required */ |
|
36 const TUint KBufExpandSize=8; |
|
37 const TUint KServerBufExpandSize=500; |
|
38 |
|
39 /* Service name attribute is offset with the language base value */ |
|
40 const TUint KSdpAttrIdServiceName=KSdpAttrIdBasePrimaryLanguage + KSdpAttrIdOffsetServiceName; |
|
41 |
|
42 /* This value is used as when a port is found it will be between 0 - 30 */ |
|
43 const TUint8 KNotAPort = 0xFF; |
|
44 const TUint KNoPort = 0; |
|
45 |
|
46 /* Obex test port value */ |
|
47 static const TUint8 KObexTestPort = 17; |
|
48 /* RFCOMM protocol UUID, not in btsdp.h at time of writing */ |
|
49 static const TInt KRfcommUuid = 0x0003; |
|
50 /* Obex Protocol UUID, not in btsdp.h at time of writing */ |
|
51 static const TInt KObexProtocolUuid = 0x0003; |
|
52 |
|
53 |
|
54 /* String Literals used in application */ |
|
55 _LIT(KObjectType,"text/x-vcard"); |
|
56 _LIT(KClientInterfaceDescriptor,"Client Interface"); |
|
57 _LIT(KServerInterfaceDescriptor,"Server Interface"); |
|
58 _LIT8(KIrdaTransportAttrName, "IrDA:TinyTP:LsapSel"); |
|
59 _LIT(KFilePath1,"Z:\\private\\00000000\\Contactsbak.vcf"); |
|
60 _LIT(KFilePath2,"Z:\\private\\00000000\\Contactsbak2.vcf"); |
|
61 _LIT(KFilePath3,"Z:\\private\\00000000\\Contactsbak3.vcf"); |
|
62 _LIT(KFilename1,"Contacts.vcf"); |
|
63 _LIT(KFilename2,"Contacts2.vcf"); |
|
64 _LIT(KFilename3,"Contacts3.vcf"); |
|
65 _LIT(KAlreadyActive,"\r\nError: Client handler already active\r\n"); |
|
66 _LIT8(KIrdaClassName, "OBEX"); |
|
67 _LIT8(KLocalInfoAppend," EikIrOBEXFile "); |
|
68 _LIT(KAuthPassword,"password"); |
|
69 _LIT8(KServerDesC,"File transfer server"); |
|
70 |
|
71 #define EPOCIDENT _L8("EPOC32 ER5") |
|
72 |
|
73 #endif // OBEXAPPCONSTANTS_H |