|
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: notifier plugin request encapsulation |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef T_RSFWNOTPLUGINGREQUEST_H |
|
19 #define T_RSFWNOTPLUGINGREQUEST_H |
|
20 |
|
21 const TUid KRsfwNotifierPluginUID = { 0x101F9770 }; |
|
22 |
|
23 // CONSTANTS |
|
24 const TInt KRsfwMaxDrivenameLength = 20; |
|
25 const TInt KRsfwMaxDriveletterLength = 2; |
|
26 const TInt KRsfwMaxFileSizeString = 20; |
|
27 const TInt KRsfwMaxUsernameLength = 50; |
|
28 const TInt KRsfwMaxPasswordLength = 50; |
|
29 const TInt KRsfwNotifierMsgDataMaxSize = 1024; |
|
30 |
|
31 /** |
|
32 * Class TRsfwNotPluginRequest |
|
33 * Base class for fixed sized requests transferred between client and plug-in |
|
34 * notifier implementation. |
|
35 * This is used internally. This should not be instantiated by the clients. |
|
36 */ |
|
37 class TRsfwNotPluginRequest |
|
38 { |
|
39 public: |
|
40 |
|
41 /** |
|
42 * List of supported functionalities in plug-in implementation |
|
43 */ |
|
44 enum TRsfwNotPluginMethod |
|
45 { |
|
46 ENoMethod, |
|
47 EAuthenticationDlg, |
|
48 ESaveToDlg, |
|
49 EUnavailableRetryDlg, |
|
50 // wait dialogs, note that these could come after EUnavailableRetryDlg |
|
51 EConnectingDlg, |
|
52 EFetchingDlg |
|
53 }; |
|
54 |
|
55 |
|
56 // method |
|
57 TRsfwNotPluginMethod iMethod; |
|
58 |
|
59 // Drive Friendly name |
|
60 TBuf<KRsfwMaxDrivenameLength> iDriveName; |
|
61 |
|
62 |
|
63 }; |
|
64 |
|
65 // Package buffer to hold parameter information |
|
66 typedef TPckgBuf<TRsfwNotPluginRequest> TRsfwRetryParamsPckg; |
|
67 |
|
68 #endif |