author | hgs |
Mon, 04 Oct 2010 16:06:10 +0300 | |
changeset 76 | cfea66083b62 |
parent 65 | 2a5d4ab426d3 |
child 78 | baacf668fe89 |
permissions | -rw-r--r-- |
37 | 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 |
||
18 |
#ifndef CPPLUGINCOMMON_H |
|
19 |
#define CPPLUGINCOMMON_H |
|
20 |
||
21 |
#include <qvariant.h> |
|
50 | 22 |
#include <qsysteminfo.h> |
37 | 23 |
#include "cptelephonyutilsdefs.h" |
24 |
||
25 |
class XQSettingsManager; |
|
26 |
||
27 |
using namespace CpTelephonyUtils; |
|
50 | 28 |
using namespace QtMobility; |
37 | 29 |
|
30 |
/*! |
|
31 |
\class Tools |
|
32 |
\brief The static functionality. |
|
33 |
*/ |
|
76 | 34 |
class TELEPHONYUTILS_EXPORT Tools : public QObject |
37 | 35 |
{ |
36 |
Q_OBJECT |
|
37 |
||
38 |
public: |
|
39 |
/*! |
|
40 |
Is VoIP currently supported |
|
41 |
*/ |
|
42 |
static bool voipSupported(); |
|
43 |
||
44 |
/*! |
|
45 |
Is video currently supported |
|
46 |
*/ |
|
47 |
static bool videoSupported(); |
|
48 |
||
49 |
}; |
|
50 |
||
51 |
/*! |
|
52 |
\class SettingsWrapper |
|
53 |
\brief Wraps central repository and P&S dependency. |
|
54 |
*/ |
|
76 | 55 |
class TELEPHONYUTILS_EXPORT SettingsWrapper : public QObject |
37 | 56 |
{ |
57 |
Q_OBJECT |
|
58 |
public: |
|
76 | 59 |
SettingsWrapper(QObject *parent = NULL); |
60 |
~SettingsWrapper(); |
|
37 | 61 |
public: |
62 |
/*! |
|
63 |
Show call duration setting |
|
64 |
*/ |
|
65 |
bool showCallDuration(); |
|
66 |
int setShowCallDuration(bool value); |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
67 |
|
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
68 |
/*! |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
69 |
Own video in received call setting |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
70 |
*/ |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
71 |
int readVtVideoSending(); |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
72 |
int writeVtVideoSending(int value); |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
73 |
|
37 | 74 |
/*! |
75 |
Soft reject text setting |
|
76 |
*/ |
|
77 |
void readSoftRejectText( QString &text, bool &userDefined ); |
|
78 |
int writeSoftRejectText(const QString &text, bool userDefined ); |
|
79 |
||
80 |
/*! |
|
81 |
Number grouping support |
|
82 |
*/ |
|
83 |
bool numberGroupingSupported() const; |
|
84 |
||
85 |
/*! |
|
86 |
Call waiting distiquish not provisioned support |
|
87 |
*/ |
|
88 |
bool isFeatureCallWaitingDistiquishNotProvisionedEnabled(); |
|
89 |
||
90 |
/*! |
|
91 |
Checks if phone is in offline mode or not. |
|
92 |
Return true if phone is in offline mode. |
|
93 |
Return false if phone is not in offline mode. |
|
94 |
*/ |
|
95 |
bool isPhoneOffline() const; |
|
96 |
||
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
97 |
/*! |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
98 |
Checks if ongoing call exists. |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
99 |
Return true if ongoing call exists. |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
100 |
Return false if ongoing call does not exist. |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
101 |
*/ |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
102 |
bool isOngoingCall() const; |
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
103 |
|
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
104 |
/*! |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
105 |
Forbidden Icon support |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
106 |
*/ |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
107 |
bool forbiddenIconSupported() const; |
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
108 |
|
37 | 109 |
private: |
110 |
/*! |
|
111 |
Read cenrep value. |
|
112 |
*/ |
|
113 |
QVariant readCenrepValue( const long int uid, const unsigned long int key) const; |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
114 |
|
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
115 |
/*! |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
116 |
Read pubsub value. |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
117 |
*/ |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
118 |
QVariant readPubSubValue( const long int uid, const unsigned long int key) const; |
37 | 119 |
|
120 |
/*! |
|
121 |
Read cenrep string. |
|
122 |
*/ |
|
123 |
QString readCenrepString( const long int uid, const unsigned long int key) const; |
|
124 |
||
125 |
/*! |
|
126 |
Write cenrep value or string. |
|
127 |
*/ |
|
128 |
int writeCenrepValue( const long int uid, const unsigned long int key, |
|
129 |
const QVariant &settingsKeyValue ) const; |
|
130 |
||
131 |
private: // Data |
|
132 |
// Own |
|
50 | 133 |
XQSettingsManager *m_settings; |
134 |
||
135 |
QSystemDeviceInfo *m_deviceInfo; |
|
37 | 136 |
}; |
137 |
||
138 |
#endif // CPPLUGINCOMMON_H |