equal
deleted
inserted
replaced
1 /* |
|
2 * Copyright (c) 2009 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 #ifndef CPPHONELOCALISATION_H_ |
|
18 #define CPPHONELOCALISATION_H_ |
|
19 |
|
20 #include <QObject> |
|
21 #include <QList> |
|
22 #include "cptelephonyutilsdefs.h" |
|
23 |
|
24 // Forward declarations |
|
25 class QTranslator; |
|
26 |
|
27 class CPTELEPHONYUTILS_EXPORT CpPhoneLocalisation: public QObject |
|
28 { |
|
29 Q_OBJECT |
|
30 |
|
31 public: |
|
32 |
|
33 enum TranslationFileId { |
|
34 TranslationFileCommon, |
|
35 TranslationFileTelephoneCp |
|
36 }; |
|
37 |
|
38 public: |
|
39 |
|
40 CpPhoneLocalisation(QObject *parent = NULL); |
|
41 ~CpPhoneLocalisation(); |
|
42 |
|
43 bool installTranslator(TranslationFileId translationFileId); |
|
44 void removeTranslators(); |
|
45 |
|
46 private: |
|
47 |
|
48 QList<QTranslator *> m_translators; |
|
49 |
|
50 }; |
|
51 |
|
52 |
|
53 #endif /* CPPHONELOCALISATION_H_ */ |
|