File indexing completed on 2023-11-26 04:55:35
0001 /* 0002 * This file is part of telepathy-accounts-kcm 0003 * 0004 * Copyright (C) 2009 Collabora Ltd. <info@collabora.com> 0005 * Copyright (C) 2011 Thomas Richard <thomas.richard@proan.be> 0006 * 0007 * This library is free software; you can redistribute it and/or 0008 * modify it under the terms of the GNU Lesser General Public 0009 * License as published by the Free Software Foundation; either 0010 * version 2.1 of the License, or (at your option) any later version. 0011 * 0012 * This library is distributed in the hope that it will be useful, 0013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0015 * Lesser General Public License for more details. 0016 * 0017 * You should have received a copy of the GNU Lesser General Public 0018 * License along with this library; if not, write to the Free Software 0019 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 0020 */ 0021 0022 #ifndef TELEPATHY_ACCOUNTS_KCM_ADD_ACCOUNT_ASSISTANT_H 0023 #define TELEPATHY_ACCOUNTS_KCM_ADD_ACCOUNT_ASSISTANT_H 0024 0025 #include <KAssistantDialog> 0026 #include <KMessageWidget> 0027 0028 #include <TelepathyQt/AccountManager> 0029 0030 namespace Tp { 0031 class PendingOperation; 0032 } 0033 0034 class AddAccountAssistant : public KAssistantDialog 0035 { 0036 Q_OBJECT 0037 0038 public: 0039 explicit AddAccountAssistant(Tp::AccountManagerPtr accountManager, QWidget *parent = 0); 0040 ~AddAccountAssistant(); 0041 0042 protected Q_SLOTS: 0043 virtual void back(); 0044 virtual void next(); 0045 virtual void accept(); 0046 virtual void reject(); 0047 void goToPageTwo(); 0048 void goToPageThree(); 0049 0050 Q_SIGNALS: 0051 void cancelled(); 0052 void feedbackMessage(const QString &text, const QString &comment, KMessageWidget::MessageType); 0053 0054 private Q_SLOTS: 0055 void onAccountCreated(Tp::PendingOperation *op); 0056 void onConnectionManagerReady(Tp::PendingOperation *op); 0057 void onProfileSelected(bool value); 0058 0059 private: 0060 void pageThree(); 0061 0062 class Private; 0063 Private * const d; 0064 }; 0065 0066 0067 #endif // Header guard 0068