provider-plugin-process-priv.h

00001 /*
00002  * This file is part of accounts-ui
00003  *
00004  * Copyright (C) 2011 Nokia Corporation.
00005  *
00006  * Contact: Alberto Mardegan <alberto.mardegan@nokia.com>
00007  *
00008  * This library is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU Lesser General Public License
00010  * version 2.1 as published by the Free Software Foundation.
00011  *
00012  * This library is distributed in the hope that it will be useful, but
00013  * WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
00015  * Lesser General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Lesser General Public
00018  * License along with this library; if not, write to the Free Software
00019  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
00020  * 02110-1301 USA
00021  */
00022 
00023 #ifndef ACCOUNTSETUP_PROVIDER_PLUGIN_PROCESS_PRIV_H
00024 #define ACCOUNTSETUP_PROVIDER_PLUGIN_PROCESS_PRIV_H
00025 
00026 //libAccountSetup
00027 #include "provider-plugin-process.h"
00028 
00029 //Accounts
00030 #include <Accounts/account.h>
00031 #include <Accounts/manager.h>
00032 
00033 //Qt
00034 #include <QLocalSocket>
00035 
00036 namespace AccountSetup {
00037 
00038 class ProviderPluginProcessPrivate: public QObject
00039 {
00040     Q_OBJECT
00041     Q_DECLARE_PUBLIC(ProviderPluginProcess)
00042 
00043 public:
00044     ProviderPluginProcessPrivate(ProviderPluginProcess *parent);
00045     ~ProviderPluginProcessPrivate();
00046 
00047     void sendResultToCaller();
00048 
00049 public Q_SLOTS:
00050     void onSocketError(QLocalSocket::LocalSocketError errorStatus);
00051 
00052 private:
00053     mutable ProviderPluginProcess *q_ptr;
00054     SetupType setupType;
00055     WId windowId;
00056     Accounts::Manager *manager;
00057     Accounts::Account *account;
00058     QString serviceType;
00059     bool returnToApp;
00060     QString socketName;
00061     bool goToAccountsPage;
00062     QVariant exitData;
00063 };
00064 
00065 } // namespace
00066 #endif // ACCOUNTSETUP_PROVIDER_PLUGIN_PROCESS_PRIV_H