|
1 /* |
|
2 * Copyright (c) 2006-2007 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: ObexServicemanager opcodes, panic enumerations and other |
|
15 definitions. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef OBEXSERVICEMAN_H |
|
21 #define OBEXSERVICEMAN_H |
|
22 |
|
23 // INCLUDES |
|
24 |
|
25 #include <e32base.h> |
|
26 #include "SrcsClSv.h" |
|
27 |
|
28 /** |
|
29 * Function to start server. |
|
30 */ |
|
31 IMPORT_C void RunServerL(); |
|
32 |
|
33 /** |
|
34 * Utility to panic the client. |
|
35 */ |
|
36 void PanicClient(const RMessage2& aMessage, TInt aPanic); |
|
37 |
|
38 /** |
|
39 * Utility to panic server. |
|
40 */ |
|
41 void PanicServer(TInt aPanic); |
|
42 |
|
43 /** |
|
44 * Provides server startup parameters. |
|
45 */ |
|
46 class TSrcsStart |
|
47 { |
|
48 public: |
|
49 /** |
|
50 * Constructor |
|
51 */ |
|
52 TSrcsStart(TRequestStatus& aStatus); |
|
53 |
|
54 /** |
|
55 * Default constructor |
|
56 * |
|
57 * @since s60 3.2 |
|
58 */ |
|
59 inline TSrcsStart() {}; |
|
60 |
|
61 /** |
|
62 * Provides startup parameters |
|
63 * |
|
64 * @since s60 3.2 |
|
65 */ |
|
66 TPtrC AsCommand() const; |
|
67 |
|
68 /** |
|
69 * Signalling from Server start. |
|
70 * |
|
71 * @since s60 3.2 |
|
72 */ |
|
73 IMPORT_C void SignalL(); |
|
74 |
|
75 /** |
|
76 * Initialize from memory |
|
77 * |
|
78 * @since s60 3.2 |
|
79 */ |
|
80 TInt Set(const TDesC& aData); |
|
81 |
|
82 public: // Data |
|
83 TThreadId iId; |
|
84 TRequestStatus* iStatus; |
|
85 }; |
|
86 |
|
87 /** |
|
88 * Number of interfaces and length of descriptors registered by SRCS |
|
89 */ |
|
90 class TSrcsUsbDescriptorInfo |
|
91 { |
|
92 public: |
|
93 TInt iNumInterfaces; |
|
94 TInt iLength; |
|
95 }; |
|
96 |
|
97 #endif // SRCSCLSV_H |
|
98 |