File indexing completed on 2023-12-03 08:28:37

0001 /*
0002  * Copyright (C) 2013 Dan Vrátil <dvratil@redhat.com>
0003  *
0004  * This library is free software; you can redistribute it and/or
0005  * modify it under the terms of the GNU Lesser General Public
0006  * License as published by the Free Software Foundation; either
0007  * version 2.1 of the License, or (at your option) any later version.
0008  *
0009  * This library is distributed in the hope that it will be useful,
0010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0012  * Lesser General Public License for more details.
0013  *
0014  * You should have received a copy of the GNU Lesser General Public
0015  * License along with this library; if not, write to the Free Software
0016  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
0017  */
0018 
0019 #ifndef KTP_CONTACTINFODIALOG_H
0020 #define KTP_CONTACTINFODIALOG_H
0021 
0022 #include <QDialog>
0023 
0024 #include <KTp/ktpcommoninternals_export.h>
0025 
0026 #include <TelepathyQt/Types>
0027 
0028 
0029 class QAbstractButton;
0030 namespace Tp {
0031 class PendingOperation;
0032 }
0033 
0034 namespace KTp {
0035 
0036 class KTPCOMMONINTERNALS_EXPORT ContactInfoDialog : public QDialog
0037 {
0038 
0039     Q_OBJECT
0040 
0041   public:
0042     explicit ContactInfoDialog(const Tp::AccountPtr &account, const Tp::ContactPtr &contact, QWidget *parent = nullptr);
0043     ~ContactInfoDialog() override;
0044 
0045   protected:
0046     virtual void slotButtonClicked(QAbstractButton *button);
0047 
0048   private:
0049     class Private;
0050     Private * const d;
0051 
0052     Q_PRIVATE_SLOT(d, void onContactUpgraded(Tp::PendingOperation*))
0053     Q_PRIVATE_SLOT(d, void onContactInfoReceived(Tp::PendingOperation*))
0054     Q_PRIVATE_SLOT(d, void onChangeAvatarButtonClicked())
0055     Q_PRIVATE_SLOT(d, void onClearAvatarButtonClicked())
0056     Q_PRIVATE_SLOT(d, void onInfoDataChanged())
0057     Q_PRIVATE_SLOT(d, void onFeatureRosterReady(Tp::PendingOperation *op))
0058 
0059 };
0060 
0061 } // namespace KTp
0062 
0063 #endif // KTP_CONTACTINFODIALOG_H