|
1 /* |
|
2 * Copyright (c) 2002 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 |
|
19 |
|
20 #ifndef BT_SENDING_SERVICE_PROVIDER_H |
|
21 #define BT_SENDING_SERVICE_PROVIDER_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <AiwServiceIfMenu.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CBTServiceParameterList; |
|
28 class CBTServiceAPI; |
|
29 class CBTSSSendListHandler; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * Provides BT sending services |
|
35 * |
|
36 */ |
|
37 class CBTSSProvider : public CAiwServiceIfMenu |
|
38 { |
|
39 public: // Constructors and destructor |
|
40 |
|
41 /** |
|
42 * Two-phased constructor. |
|
43 */ |
|
44 static CBTSSProvider* NewL(); |
|
45 |
|
46 /** |
|
47 * Destructor. |
|
48 */ |
|
49 virtual ~CBTSSProvider(); |
|
50 |
|
51 |
|
52 public: // Functions from base classes |
|
53 |
|
54 /** |
|
55 * From CAiwServiceIfBase Not used |
|
56 * @since 2.6 |
|
57 * @param aFrameworkCallback Not used |
|
58 * @param aInterest Not used |
|
59 * @return None |
|
60 */ |
|
61 virtual void InitialiseL( MAiwNotifyCallback& aFrameworkCallback, |
|
62 const RCriteriaArray& aInterest ); |
|
63 |
|
64 /** |
|
65 * From CAiwServiceIfBase Processes service command |
|
66 * and starts bt sending |
|
67 * @since 2.6 |
|
68 * @param aCmdId Command id |
|
69 * @param aInParamList Not used |
|
70 * @param aOutParamList List of files |
|
71 * @param aCmdOptions Not used |
|
72 * @param aCallback Not used |
|
73 * @return None |
|
74 */ |
|
75 virtual void HandleServiceCmdL( const TInt& aCmdId, |
|
76 const CAiwGenericParamList& aInParamList, |
|
77 CAiwGenericParamList& aOutParamList, |
|
78 TUint aCmdOptions, |
|
79 const MAiwNotifyCallback* aCallback ); |
|
80 |
|
81 /** |
|
82 * From CAiwServiceIfBase Processes service command |
|
83 * and starts bt sending |
|
84 * @since 2.6 |
|
85 * @param aCmdId Command id |
|
86 * @param aInParamList Not used |
|
87 * @param aOutParamList List of files |
|
88 * @param aCmdOptions Not used |
|
89 * @param aCallback Not used |
|
90 * @return None |
|
91 */ |
|
92 virtual void HandleMenuCmdL(TInt aMenuCmdId, |
|
93 const CAiwGenericParamList& aInParamList, |
|
94 CAiwGenericParamList& aOutParamList, |
|
95 TUint aCmdOptions, |
|
96 const MAiwNotifyCallback* aCallback ); |
|
97 |
|
98 |
|
99 |
|
100 virtual void InitializeMenuPaneL( CAiwMenuPane& aMenuPane, |
|
101 TInt aIndex, |
|
102 TInt /* aCascadeId */, |
|
103 const CAiwGenericParamList& aInParamList ); |
|
104 |
|
105 private: |
|
106 |
|
107 /** |
|
108 * C++ default constructor. |
|
109 */ |
|
110 CBTSSProvider(); |
|
111 |
|
112 /** |
|
113 * By default Symbian 2nd phase constructor is private. |
|
114 */ |
|
115 void ConstructL(); |
|
116 |
|
117 private: // Data |
|
118 |
|
119 CBTServiceAPI* iBTSendingService; |
|
120 |
|
121 CBTSSSendListHandler* iConverter; |
|
122 }; |
|
123 |
|
124 #endif // BT_SENDING_SERVICE_PROVIDER_H |
|
125 |
|
126 // End of File |