• Skip to content
  • Skip to link menu
  • KDE API Reference
  • KDE Home
  • Contact Us
 

Nepomuk-Core

  • KTp
circular-countdown.h
Go to the documentation of this file.
1 /*
2  Circular countdown widget
3  Copyright (C) 2011 Martin Klapetek <martin.klapetek@gmail.com>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Lesser General Public
7  License as published by the Free Software Foundation; either
8  version 2.1 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public
16  License along with this library; if not, write to the Free Software
17  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19 
20 #ifndef CIRCULARCOUNTDOWN_H
21 #define CIRCULARCOUNTDOWN_H
22 
23 #include <QWidget>
24 
25 #include <KTp/ktp-export.h>
26 
27 namespace KTp
28 {
29 
30 class KTP_EXPORT CircularCountdown : public QWidget
31 {
32  Q_OBJECT
33 
34 public:
35  explicit CircularCountdown(int msec = 5000, QWidget *parent = 0);
36  ~CircularCountdown();
37 
38  void setDuration(int msec);
39  int duration() const;
40 
41 public Q_SLOTS:
42  void start();
43  void stop();
44  void pause();
45  void resume();
46 
47 Q_SIGNALS:
48  void timeout();
49 
50 
51 protected:
52  void paintEvent(QPaintEvent *event);
53  QSize sizeHint() const;
54 
55 private:
56  class Private;
57  Private * const d;
58 };
59 
60 }
61 
62 #endif // CIRCULARCOUNTDOWN_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Fri Mar 22 2013 10:58:52 by doxygen 1.8.1.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

ktp-common-internals API Reference

Skip menu "ktp-common-internals API Reference"
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal