diff -r 35baca0e7a2e -r 023eef975703 javamanager/javasettings/appsettingsview_qt/src/javaapplicationsettingsview_p.h --- a/javamanager/javasettings/appsettingsview_qt/src/javaapplicationsettingsview_p.h Tue Jul 06 20:36:19 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,118 +0,0 @@ -/* -* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ -#ifndef JAVAAPPLICATIONSETTINGSVIEW_P_H -#define JAVAAPPLICATIONSETTINGSVIEW_P_H - -#include -#include -#include -#include -#include -#include -#include -#include "javaapplicationsettings.h" -#include "javastorage.h" - -class HbWidget; -class HbPushButton; -class HbDataForm; -class HbDataFormModel; -class HbDataFormModelItem; -class JavaApplicationSettingsView; -class HbAction; - -struct IndexedSettingsName -{ - std::wstring name; - int index; -}; - -struct AscendingSort -{ - bool operator()(const IndexedSettingsName& i1, const IndexedSettingsName& i2) - { - return i1.index < i2.index; - } -}; - -class JavaApplicationSettingsViewPrivate: public QObject -{ - Q_OBJECT - -public: - JavaApplicationSettingsViewPrivate(const QString& aApplication); - virtual ~JavaApplicationSettingsViewPrivate(); - void init(JavaApplicationSettingsView*); - - // slots - void _q_settingsChanged(const QString &newValue); - void _q_settingsChanged(bool); - void _q_dataItemDisplayed(const QModelIndex); - -private slots: - void netConnSelected(uint netConnSelectionStatus); - void securityWarningDismissed(HbAction*); - -private: - void readAllSettings(); - void initSettings(QVector& settings, HbDataFormModelItem * parent); - void writeSettings(JavaApplicationSettings& settings, const QString &newValue); - void securityWarningsChanged(const QString &); - bool blanketAllowed(const JavaApplicationSettings &settings); - HbWidget * itemToWidget(const HbDataFormModelItem *); - JavaApplicationSettings* findSettings(HbWidget* id); - JavaApplicationSettings* findSettings(HbWidget* id, QVector& settings); - void readFromStorage(JavaApplicationSettings& settings); - void writeToStorage(JavaApplicationSettings& settings); - bool findFromStorage(const std::wstring&, const std::wstring&, const std::wstring&, const std::string&); - std::wstring readFromStorage(const std::wstring&, const std::wstring&, const std::wstring&, const std::string&); - std::vector readFromStorage(const std::wstring& aColumnName, const std::string& aTableName); - void filterSecuritySettings(JavaApplicationSettings& settings); - void findEntry(const java::storage::JavaStorageApplicationList_t&, const std::wstring&, std::wstring& eValue); - void readSuiteUid(const QString& aAppUid); - bool securityWarningAccepted(const QString& text, const QString& acceptActionLabel, const QString& rejectActionLabel, const QString& headingText); - void handleNetworkSettings(); - void readNetworkConnectionName(); - void initNetworkConnection(); - void configureList(QList&, const QStringList&, const QHash&); - void attachList(const QString& settingsName, const QList&, const QHash&, bool isHighRiskList = true); - void installTranslator(const QString& translationFileName); - -private: - HbDataForm * mainForm; - HbDataFormModel *model; - HbDataFormModelItem * generalSettingsGroup; - HbDataFormModelItem * securitySettingsGroup; - QVector generalSettings; - QVector securitySettings; - QVector extraSettings; - JavaApplicationSettingsView* iPublicView; - std::auto_ptr iStorage; - std::wstring iSuiteUid; - QString BLANKET,SESSION,ONESHOT,DENIED,SECURITY_LEVEL,USER_DEFINED,SENSITIVE_SETTINGS,SENSITIVE_SETTINGS_NET_USAGE,MUTUALLY_EXCLUSIVE_SETTINGS,OK,CANCEL,SECURITY_WARNING_TITLE,NET_ACCESS,LOW_LEVEL_NET_ACCESS,NETWORK_CONNECTION,NETWORK_CONNECTION_CHANGE,SETTINGS_TITLE,SETTINGS_NOT_AVAILABLE; - CmApplSettingsUi* netConnSettingsUi; - CmApplSettingsUi::SettingSelection netConnSelection; - JavaApplicationSettings::NetworkConnection netConn; - int netSettIndex; - QEventLoop* asyncToSyncCallEventLoop; - bool secWarningAccepted; - int defaultConnId; - QList translators; -}; - - -#endif // JAVAAPPLICATIONSETTINGSVIEW_P_H