libAccountSetup 1.0
provider-plugin-process-priv.h
1/*
2 * This file is part of accounts-ui
3 *
4 * Copyright (C) 2011 Nokia Corporation.
5 *
6 * Contact: Alberto Mardegan <alberto.mardegan@nokia.com>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public License
10 * version 2.1 as published by the Free Software Foundation.
11 *
12 * This library is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20 * 02110-1301 USA
21 */
22
23#ifndef ACCOUNTSETUP_PROVIDER_PLUGIN_PROCESS_PRIV_H
24#define ACCOUNTSETUP_PROVIDER_PLUGIN_PROCESS_PRIV_H
25
26//libAccountSetup
27#include "provider-plugin-process.h"
28
29//Accounts
30#include <Accounts/account.h>
31#include <Accounts/manager.h>
32
33//Qt
34#include <QLocalSocket>
35
36namespace AccountSetup {
37
38class ProviderPluginProcessPrivate: public QObject
39{
40 Q_OBJECT
41 Q_DECLARE_PUBLIC(ProviderPluginProcess)
42
43public:
44 ProviderPluginProcessPrivate(ProviderPluginProcess *parent);
45 ~ProviderPluginProcessPrivate();
46
47 void sendResultToCaller();
48
49public Q_SLOTS:
50 void onSocketError(QLocalSocket::LocalSocketError errorStatus);
51
52private:
53 mutable ProviderPluginProcess *q_ptr;
54 SetupType setupType;
55 WId windowId;
56 Accounts::Manager *manager;
57 Accounts::Account *account;
58 QString serviceType;
59 bool returnToApp;
60 QString socketName;
61 bool goToAccountsPage;
62 QVariant exitData;
63 bool editExistingAccount;
64 Accounts::AccountId existingAccountId;
65};
66
67} // namespace
68#endif // ACCOUNTSETUP_PROVIDER_PLUGIN_PROCESS_PRIV_H
Class to manage the account provider plugins as separate processes.
SetupType
Operation type.
Definition types.h:38