blob: 675ab3e72c308c740b73397cd4849b51bba31f61 [file] [log] [blame]
Anthony Léonard2fde81d2017-04-17 10:06:55 -04001/***************************************************************************
2 * Copyright (C) 2015-2017 by Savoir-faire Linux *
3 * Author: Anthony Léonard <anthony.leonard@savoirfairelinux.com> *
4 * Author: Olivier Soldano <olivier.soldano@savoirfairelinux.com> *
5 * *
6 * This program is free software; you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License as published by *
8 * the Free Software Foundation; either version 3 of the License, or *
9 * (at your option) any later version. *
10 * *
11 * This program is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU General Public License *
17 * along with this program. If not, see <http://www.gnu.org/licenses/>. *
18 **************************************************************************/
19
Anthony Léonardd47179c2017-03-28 10:39:10 -040020#ifndef CONTACTREQUESTWIDGET_H
21#define CONTACTREQUESTWIDGET_H
22
23#include <QWidget>
24#include "contactrequest.h"
25
26namespace Ui {
27class ContactRequestWidget;
28}
29
30class ContactRequestWidget : public QWidget
31{
32 Q_OBJECT
33
34public:
35 explicit ContactRequestWidget(QWidget *parent = 0);
36 ~ContactRequestWidget();
Anthony Léonard8c136442017-04-28 11:24:14 -040037 void setCurrentContactRequest(const QModelIndex &current);
Anthony Léonardd47179c2017-03-28 10:39:10 -040038
39signals:
40 void choiceMade();
41
42private slots:
43 void on_acceptCRButton_clicked();
44 void on_discardCRButton_clicked();
Anthony Léonarddd9fb6a2017-04-26 10:25:48 -040045 void on_blockCRButton_clicked();
Anthony Léonardd47179c2017-03-28 10:39:10 -040046
47private:
48 Ui::ContactRequestWidget *ui;
49 ContactRequest* cr_ = nullptr;
50};
51
52#endif // CONTACTREQUESTWIDGET_H