~ubuntu-branches/ubuntu/vivid/muon/vivid-proposed

« back to all changes in this revision

Viewing changes to libmuon/backends/AkabeiBackend/AkabeiQuestion.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2014-02-20 22:43:20 UTC
  • mfrom: (1.4.29)
  • mto: This revision was merged to the branch mainline in revision 71.
  • Revision ID: package-import@ubuntu.com-20140220224320-datq4ba1924izrc9
Tags: 2.1.70-0ubuntu1
* New upstream alpha release
* Build-dep on libbodega-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * <one line to give the library's name and an idea of what it does.>
 
3
 * Copyright 2013  Lukas Appelhans <l.appelhans@gmx.de>
 
4
 *
 
5
 * This program is free software; you can redistribute it and/or
 
6
 * modify it under the terms of the GNU General Public License as
 
7
 * published by the Free Software Foundation; either version 2 of
 
8
 * the License or (at your option) version 3 or any later version
 
9
 * accepted by the membership of KDE e.V. (or its successor approved
 
10
 * by the membership of KDE e.V.), which shall act as a proxy
 
11
 * defined in Section 14 of version 3 of the license.
 
12
 *
 
13
 * This program is distributed in the hope that it will be useful,
 
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16
 * GNU General Public License for more details.
 
17
 *
 
18
 * You should have received a copy of the GNU General Public License
 
19
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
20
 *
 
21
 */
 
22
 
 
23
#ifndef AKABEIQUESTION_H
 
24
#define AKABEIQUESTION_H
 
25
 
 
26
#include <KDialog>
 
27
#include <akabeiclienttransactionhandler.h>
 
28
 
 
29
class QAbstractButton;
 
30
class QButtonGroup;
 
31
class AkabeiQuestion : public KDialog
 
32
{
 
33
    Q_OBJECT
 
34
public:
 
35
    AkabeiQuestion(AkabeiClient::TransactionQuestion * question, QWidget * parent = 0);
 
36
    
 
37
    QString ask();
 
38
    
 
39
private slots:
 
40
    void buttonClicked(QAbstractButton * button);
 
41
    
 
42
private:
 
43
    AkabeiClient::TransactionQuestion * m_question;
 
44
    QButtonGroup * m_buttonGroup;
 
45
    QString m_answer;
 
46
};
 
47
 
 
48
#endif // AKABEIQUESTION_H