|
1 /* |
|
2 * Copyright (c) 2007-2008 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: Holds plugins shared resources |
|
15 * Version : %version: 2 % << Don't touch! Updated by Synergy at check-out. |
|
16 * |
|
17 */ |
|
18 #ifndef CMMPLUGINSHAREDRESOURCES_H_ |
|
19 #define CMMPLUGINSHAREDRESOURCES_H_ |
|
20 |
|
21 class CMmPluginSharedResources : public CBase |
|
22 { |
|
23 public: |
|
24 |
|
25 /** |
|
26 * Instantiates an object of this type. |
|
27 * @return Instance of the CMmPluginSharedResources class. |
|
28 */ |
|
29 static CMmPluginSharedResources* NewL(); |
|
30 |
|
31 /** |
|
32 * Second phase Symbian constructor. |
|
33 */ |
|
34 void ConstructL(); |
|
35 |
|
36 /** |
|
37 * C++ Destructor. |
|
38 */ |
|
39 ~CMmPluginSharedResources(); |
|
40 |
|
41 /** |
|
42 * Getter for resource file |
|
43 * @return String file path. |
|
44 */ |
|
45 const TDesC& GetLanguageFilePath() { return *iLanguageFilePath; } |
|
46 |
|
47 /** |
|
48 * Getter for R_MENU_EDIT_DEFAULT_FOLDER_NAME |
|
49 * @return String loaded from resource. |
|
50 */ |
|
51 const TDesC& GetDefaultFolderName() { return *iDefFolderName; } |
|
52 |
|
53 /** |
|
54 * Getter for R_MENU_EDIT_FOLDER_NAME |
|
55 * @return String loaded from resource. |
|
56 */ |
|
57 const TDesC& GetEditFolderName() { return *iEditFolderName; } |
|
58 |
|
59 /** |
|
60 * Getter for R_MENU_EDIT_FLDR_BAD_FILE_NAME |
|
61 * @return String loaded from resource. |
|
62 */ |
|
63 const TDesC& GetMsgBadFileName() { return *iMsgBadFileName; } |
|
64 |
|
65 /** |
|
66 * Getter for R_MENU_EDIT_FLDR_ILLEGAL_CHARACTERS |
|
67 * @return String loaded from resource. |
|
68 */ |
|
69 const TDesC& GetMsgIllegalCharacters() { return *iMsgBadChar; } |
|
70 |
|
71 /** |
|
72 * Getter for R_MENU_EDIT_ROOT_FOLDER |
|
73 * @return String loaded from resource. |
|
74 */ |
|
75 const TDesC& GetRootFolder() { return *iRootFolder; } |
|
76 |
|
77 /** |
|
78 * Getter for R_MENU_EDIT_FLDR_DELETING_WAIT_NOTE |
|
79 * @return String loaded from resource. |
|
80 */ |
|
81 const TDesC& GetMsgFolderDeleting() { return *iDelWaitNote; } |
|
82 |
|
83 private: |
|
84 /** |
|
85 * Resources. Own. |
|
86 */ |
|
87 HBufC* iLanguageFilePath; |
|
88 HBufC* iDefFolderName; |
|
89 HBufC* iEditFolderName; |
|
90 HBufC* iMsgBadFileName; |
|
91 HBufC* iMsgBadChar; |
|
92 HBufC* iRootFolder; |
|
93 HBufC* iDelWaitNote; |
|
94 |
|
95 /** |
|
96 * Resource offset. |
|
97 */ |
|
98 TInt iResourceOffset; |
|
99 }; |
|
100 |
|
101 #endif /* CMMPLUGINSHAREDRESOURCES_H_ */ |