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

kpimutils

  • kpimutils
progressindicatorwidget.h
1 /*
2  Copyright (c) 2013 Montel Laurent <montel@kde.org>
3 
4  This program is free software; you can redistribute it and/or modify it
5  under the terms of the GNU General Public License, version 2, as
6  published by the Free Software Foundation.
7 
8  This program is distributed in the hope that it will be useful, but
9  WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License along
14  with this program; if not, write to the Free Software Foundation, Inc.,
15  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16 */
17 
18 #ifndef PROGRESSINDICATORWIDGET_H
19 #define PROGRESSINDICATORWIDGET_H
20 
21 #include "kpimutils_export.h"
22 
23 #include <KPixmapSequence>
24 
25 #include <QLabel>
26 
27 class QTimer;
28 namespace KPIMUtils {
29 class ProgressIndicatorWidgetPrivate;
30 class ProgressIndicatorWidget;
31 class IndicatorProgress : public QObject
32 {
33  Q_OBJECT
34 public:
35  explicit IndicatorProgress(ProgressIndicatorWidget *widget, QObject *parent = 0);
36  ~IndicatorProgress();
37 
38  void startAnimation();
39  void stopAnimation();
40 
41 private Q_SLOTS:
42  void slotTimerDone();
43 
44 private:
45  int mProgressCount;
46  KPixmapSequence mProgressPix;
47  QTimer *mProgressTimer;
48  ProgressIndicatorWidget *mIndicator;
49 };
50 
51 class KPIMUTILS_EXPORT ProgressIndicatorWidget : public QLabel
52 {
53  Q_OBJECT
54 public:
55  explicit ProgressIndicatorWidget(QWidget *parent = 0);
56  ~ProgressIndicatorWidget();
57 
58 public Q_SLOTS:
59  void start();
60  void stop();
61 
62 private:
63  friend class ProgressIndicatorWidgetPrivate;
64  ProgressIndicatorWidgetPrivate * const d;
65 };
66 }
67 
68 #endif // PROGRESSINDICATORWIDGET_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Nov 26 2013 09:02:35 by doxygen 1.8.5 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kpimutils

Skip menu "kpimutils"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Modules

kdepimlibs-4.11.3 API Reference

Skip menu "kdepimlibs-4.11.3 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
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