blob: 97807911f54aed543dfb4c1e064f6d05cb2bcd0b [file] [log] [blame]
Olivier SOLDANO47aa97f2017-04-04 10:40:00 -04001/**************************************************************************
2* Copyright (C) 2015-2016 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
Olivier SOLDANOdd878662017-03-27 16:00:06 -040020#ifndef SENDCONTACTREQUESTWIDGET_H
21#define SENDCONTACTREQUESTWIDGET_H
22
23#include <QWidget>
24
25namespace Ui {
26class SendContactRequestWidget;
27}
28
29class SendContactRequestWidget : public QWidget
30{
31 Q_OBJECT
32
33public:
34 explicit SendContactRequestWidget(QWidget *parent = 0);
35 ~SendContactRequestWidget();
36 void setup(const QModelIndex& nodeIdx);
37 void sendCR(const QModelIndex& nodeIdx);
38
39private:
40 QMetaObject::Connection sendCRClickedConnection_;
41 Ui::SendContactRequestWidget *ui;
42
43signals:
44 void sendCRclicked();
45};
46
47#endif // SENDCONTACTREQUESTWIDGET_H