Warning, file /network/ktp-send-file/mainwindow.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*
0002  * Main Send File Transfer Window
0003  *
0004  * Copyright (C) 2011 David Edmundson <kde@davidedmundson.co.uk>
0005  *
0006  * This library is free software; you can redistribute it and/or
0007  * modify it under the terms of the GNU Lesser General Public
0008  * License as published by the Free Software Foundation; either
0009  * version 2.1 of the License, or (at your option) any later version.
0010  *
0011  * This library is distributed in the hope that it will be useful,
0012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0014  * Lesser General Public License for more details.
0015  *
0016  * You should have received a copy of the GNU Lesser General Public
0017  * License along with this library; if not, write to the Free Software
0018  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
0019  */
0020 
0021 #ifndef MAINWINDOW_H
0022 #define MAINWINDOW_H
0023 
0024 #include <QWidget>
0025 
0026 #include <TelepathyQt/AccountManager>
0027 #include <KTp/contact.h>
0028 
0029 
0030 namespace Ui {
0031     class MainWindow;
0032 }
0033 
0034 namespace KTp {
0035 class ContactGridWidget;
0036 class ContactsListModel;
0037 }
0038 
0039 class KFileItem;
0040 class KPixmapSequenceOverlayPainter;
0041 
0042 class MainWindow : public QWidget
0043 {
0044     Q_OBJECT
0045 
0046 public:
0047     explicit MainWindow(const QList<QUrl> &urls, QWidget *parent = 0);
0048     ~MainWindow();
0049 
0050 private Q_SLOTS:
0051     void onAccountManagerReady();
0052     void onDialogAccepted();
0053     void onPreviewLoaded(const KFileItem &item, const QPixmap &preview);
0054     void onPreviewFailed(const KFileItem &item);
0055     void onContactSelectionChanged(Tp::AccountPtr account, KTp::ContactPtr contact);
0056     void slotFileTransferFinished(Tp::PendingOperation *op);
0057 
0058 private:
0059     Ui::MainWindow *ui;
0060     QList<QUrl> m_urls;
0061     Tp::AccountManagerPtr m_accountManager;
0062     KTp::ContactsListModel *m_contactsModel;
0063     KTp::ContactGridWidget *m_contactGridWidget;
0064     KPixmapSequenceOverlayPainter *m_busyOverlay;
0065 };
0066 
0067 #endif // MAINWINDOW_H