author | hgs |
Fri, 15 Oct 2010 12:58:46 +0300 | |
changeset 78 | baacf668fe89 |
parent 76 | cfea66083b62 |
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(); |
|
78 | 61 |
|
37 | 62 |
public: |
63 |
/*! |
|
64 |
Show call duration setting |
|
65 |
*/ |
|
66 |
bool showCallDuration(); |
|
67 |
int setShowCallDuration(bool value); |
|
45
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 |
/*! |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
70 |
Own video in received call setting |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
71 |
*/ |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
72 |
int readVtVideoSending(); |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
73 |
int writeVtVideoSending(int value); |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
74 |
|
37 | 75 |
/*! |
76 |
Soft reject text setting |
|
77 |
*/ |
|
78 |
void readSoftRejectText( QString &text, bool &userDefined ); |
|
79 |
int writeSoftRejectText(const QString &text, bool userDefined ); |
|
80 |
||
81 |
/*! |
|
82 |
Number grouping support |
|
83 |
*/ |
|
84 |
bool numberGroupingSupported() const; |
|
85 |
||
86 |
/*! |
|
87 |
Call waiting distiquish not provisioned support |
|
88 |
*/ |
|
89 |
bool isFeatureCallWaitingDistiquishNotProvisionedEnabled(); |
|
90 |
||
91 |
/*! |
|
92 |
Checks if phone is in offline mode or not. |
|
93 |
Return true if phone is in offline mode. |
|
94 |
Return false if phone is not in offline mode. |
|
95 |
*/ |
|
96 |
bool isPhoneOffline() const; |
|
97 |
||
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
98 |
/*! |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
99 |
Checks if ongoing call exists. |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
100 |
Return true if ongoing call exists. |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
101 |
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
|
102 |
*/ |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
103 |
bool isOngoingCall() const; |
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
104 |
|
78 | 105 |
/*! |
106 |
Checks if network is connected. |
|
107 |
Return true if connected. |
|
108 |
Return false if not connected. |
|
109 |
*/ |
|
110 |
bool isConnectedToNetwork() const; |
|
111 |
||
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
112 |
/*! |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
113 |
Forbidden Icon support |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
114 |
*/ |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
115 |
bool forbiddenIconSupported() const; |
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
116 |
|
37 | 117 |
private: |
118 |
/*! |
|
119 |
Read cenrep value. |
|
120 |
*/ |
|
121 |
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
|
122 |
|
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
123 |
/*! |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
124 |
Read pubsub value. |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
125 |
*/ |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
126 |
QVariant readPubSubValue( const long int uid, const unsigned long int key) const; |
37 | 127 |
|
128 |
/*! |
|
129 |
Read cenrep string. |
|
130 |
*/ |
|
131 |
QString readCenrepString( const long int uid, const unsigned long int key) const; |
|
132 |
||
133 |
/*! |
|
134 |
Write cenrep value or string. |
|
135 |
*/ |
|
136 |
int writeCenrepValue( const long int uid, const unsigned long int key, |
|
137 |
const QVariant &settingsKeyValue ) const; |
|
138 |
||
139 |
private: // Data |
|
140 |
// Own |
|
50 | 141 |
XQSettingsManager *m_settings; |
142 |
||
78 | 143 |
|
37 | 144 |
}; |
145 |
||
146 |
#endif // CPPLUGINCOMMON_H |