~ubuntu-branches/ubuntu/quantal/pairs/quantal-proposed

« back to all changes in this revision

Viewing changes to src/pairs.h

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2012-06-07 21:41:16 UTC
  • Revision ID: package-import@ubuntu.com-20120607214116-bzjffkge5w0l7vmi
Tags: upstream-4.8.80
Import upstream version 4.8.80

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*  This file is part of Pairs
 
2
 *
 
3
 *  Copyright (C) <2008>       <Albert Astals Cid>   <aacid@kde.org>
 
4
 *  Copyright (C) <2010>       <Aleix Pol>           <aleixpol@kde.org>
 
5
 *  Copyright (C) <2011>       <Marco Calignano>     <marco.calignano@googlemail.com>
 
6
 *
 
7
 *  This program is free software; you can redistribute it and/or
 
8
 *  modify it under the terms of the GNU General Public License as
 
9
 *  published by the Free Software Foundation; either version 2 of
 
10
 *  the License or (at your option) version 3 or any later version
 
11
 *  accepted by the membership of KDE e.V. (or its successor approved
 
12
 *  by the membership of KDE e.V.), which shall act as a proxy 
 
13
 *  defined in Section 14 of version 3 of the license.
 
14
 *  
 
15
 *  This program is distributed in the hope that it will be useful,
 
16
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
17
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
18
 *  GNU General Public License for more details.
 
19
 *  
 
20
 *  You should have received a copy of the GNU General Public License
 
21
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
22
 */
 
23
 
 
24
#ifndef PAIRS_H
 
25
#define PAIRS_H
 
26
 
 
27
 
 
28
#include <KMainWindow>
 
29
#include <QTimer>
 
30
#include <QList>
 
31
#include <pairsplayer.h>
 
32
 
 
33
namespace Phonon { class MediaObject; }
 
34
class PairsView;
 
35
class KToggleAction;
 
36
 
 
37
class Pairs : public KMainWindow
 
38
{
 
39
    Q_OBJECT
 
40
public:
 
41
    /**
 
42
     * Default Constructor
 
43
     */
 
44
    Pairs();
 
45
 
 
46
    /**
 
47
     * Default Destructor
 
48
     */
 
49
    virtual ~Pairs();
 
50
    PairsView* view() const { return m_view; }
 
51
    
 
52
    virtual QSize sizeHint() const { return QSize(800,500); }
 
53
    
 
54
private:
 
55
    PairsView *m_view;
 
56
    QString m_right;
 
57
    QString m_wrong;
 
58
};
 
59
 
 
60
#endif // PAIRS_H