1 /* |
1 /* |
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
18 // INCLUDE FILES |
18 // INCLUDE FILES |
19 #include <ecom/ecom.h> |
19 #include <ecom/ecom.h> |
20 #include <ecom/implementationproxy.h> |
20 #include <ecom/implementationproxy.h> |
21 #include <eiknotapi.h> |
21 #include <eiknotapi.h> |
22 #include <eikenv.h> |
22 #include <eikenv.h> |
23 #include <AknNotifierWrapper.h> |
|
24 #include <usbuinotif.h> |
|
25 |
23 |
26 #include "usbuincableconnectednotifier.h" |
24 #include "usbuincableconnectednotifier.h" |
27 #include "usbuinqueriesnotifier.h" |
25 #include "usbuinqueriesnotifier.h" |
28 |
|
29 |
|
30 #include "usbuinotifdebug.h" |
26 #include "usbuinotifdebug.h" |
31 #include "usbuinotifotgwarning.h" |
27 #include "usbuinotifotgwarning.h" |
32 #include "usbuinotifotgerror.h" |
28 #include "usbuinotifotgerror.h" |
33 #include "usbuinotifmsmmerror.h" |
29 #include "usbuinotifmsmmerror.h" |
34 |
30 |
35 // CONSTANTS |
31 // CONSTANTS |
36 const TInt KUSBUINotifierArrayIncrement = 4; |
32 const TInt KUSBUINotifierArrayIncrement = 5; |
37 _LIT( KUSBUINotifdll, "usbavkonnotif.dll" ); |
33 |
38 // ================= EXPORTED FUNCTIONS ======================================= |
34 // ================= EXPORTED FUNCTIONS ======================================= |
39 // ---------------------------------------------------------------------------- |
35 // ---------------------------------------------------------------------------- |
40 // |
36 // |
41 // Instantiate notifiers |
37 // Instantiate notifiers |
42 // |
38 // |
44 |
40 |
45 void CreateUSBUINotifiersL(CArrayPtrFlat<MEikSrvNotifierBase2>* aNotifiers) |
41 void CreateUSBUINotifiersL(CArrayPtrFlat<MEikSrvNotifierBase2>* aNotifiers) |
46 { |
42 { |
47 FLOG(_L("[USBUINOTIF]\t CreateUSBUINotifiersL")); |
43 FLOG(_L("[USBUINOTIF]\t CreateUSBUINotifiersL")); |
48 |
44 |
49 /* The CableconnectionNotifier is created on the Avkon Wrapper |
45 CUSBUICableConnectedNotifier* cableConnectedNotifier = |
50 * because it contains the discreet popups which are only possible |
46 CUSBUICableConnectedNotifier::NewL(); |
51 * to be launched in a UI framework |
47 CleanupStack::PushL( cableConnectedNotifier ); |
52 */ |
48 aNotifiers->AppendL( cableConnectedNotifier ); |
53 CAknCommonNotifierWrapper* master = |
49 CleanupStack::Pop( cableConnectedNotifier ); |
54 CAknCommonNotifierWrapper::NewL(KCableConnectedNotifierUid, |
50 |
55 KCableConnectedNotifierUid, |
|
56 MEikSrvNotifierBase2::ENotifierPriorityVHigh, |
|
57 KUSBUINotifdll, |
|
58 1); // no synchronous reply used. |
|
59 CleanupStack::PushL(master); |
|
60 |
|
61 aNotifiers->AppendL(master ); |
|
62 CleanupStack::Pop( master ); |
|
63 CUSBUIQueriesNotifier* queriesNotifier = CUSBUIQueriesNotifier::NewL(); |
51 CUSBUIQueriesNotifier* queriesNotifier = CUSBUIQueriesNotifier::NewL(); |
64 CleanupStack::PushL( queriesNotifier ); |
52 CleanupStack::PushL( queriesNotifier ); |
65 aNotifiers->AppendL( queriesNotifier ); |
53 aNotifiers->AppendL( queriesNotifier ); |
66 CleanupStack::Pop( queriesNotifier ); |
54 CleanupStack::Pop( queriesNotifier ); |
67 |
55 |
126 // ECOM |
114 // ECOM |
127 // ---------------------------------------------------------------------------- |
115 // ---------------------------------------------------------------------------- |
128 |
116 |
129 const TImplementationProxy ImplementationTable[] = |
117 const TImplementationProxy ImplementationTable[] = |
130 { |
118 { |
131 #ifdef __EABI__ |
119 IMPLEMENTATION_PROXY_ENTRY( 0x10281F23, NotifierArray ) |
132 {{0x10281F23},(TFuncPtr)NotifierArray}, |
|
133 #else |
|
134 {{0x10281F23},NotifierArray}, |
|
135 #endif |
|
136 }; |
120 }; |
137 |
121 |
138 EXPORT_C const TImplementationProxy* ImplementationGroupProxy( |
122 EXPORT_C const TImplementationProxy* ImplementationGroupProxy( |
139 TInt& aTableCount) |
123 TInt& aTableCount) |
140 { |
124 { |