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

kget

  • sources
  • kde-4.12
  • kdenetwork
  • kget
  • plasma
  • applet
  • panelbar
kgetpanelbar.h
Go to the documentation of this file.
1 /***************************************************************************
2  * *
3  * This program is free software; you can redistribute it and/or modify *
4  * it under the terms of the GNU General Public License as published by *
5  * the Free Software Foundation; either version 2 of the License, or *
6  * (at your option) any later version. *
7  *
8  * Copyright (C) 2007 by Javier Goday <jgoday@gmail.com>
9  * *
10  * This program 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 *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the *
17  * Free Software Foundation, Inc., *
18  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . *
19  ***************************************************************************/
20 #ifndef KGETPANELBAR_H
21 #define KGETPANELBAR_H
22 
23 #include "common/kgetapplet.h"
24 #include <plasma/dataengine.h>
25 
26 class QGraphicsProxyWidget;
27 class QGraphicsLinearLayout;
28 class QProgressBar;
29 
30 namespace Plasma {
31  class Dialog;
32  class IconWidget;
33 }
34 
35 class KGetPanelBar : public KGetApplet
36 {
37  Q_OBJECT
38 public:
39  KGetPanelBar(QObject *parent, const QVariantList &args);
40  ~KGetPanelBar();
41 
42  void init();
43  void paintInterface(QPainter *painter,
44  const QStyleOptionGraphicsItem *option,
45  const QRect &contentsRect);
46 
47 public slots:
48  void dataUpdated(const QString &name, const Plasma::DataEngine::Data &data);
49 
50 private slots:
51  void showDialog();
52 
53 private:
54  Plasma::DataEngine *m_engine;
55  Plasma::IconWidget *m_icon;
56  QProgressBar * m_bar;
57  QGraphicsLinearLayout *m_layout;
58 
59  class Private;
60  Private *d;
61 };
62 
63 K_EXPORT_PLASMA_APPLET(kgetpanelbar, KGetPanelBar)
64 
65 #endif
KGetPanelBar
Definition: kgetpanelbar.h:35
QObject
KGetPanelBar::init
void init()
Definition: kgetpanelbar.cpp:169
KGetPanelBar::~KGetPanelBar
~KGetPanelBar()
Definition: kgetpanelbar.cpp:163
kgetapplet.h
KGetPanelBar::paintInterface
void paintInterface(QPainter *painter, const QStyleOptionGraphicsItem *option, const QRect &contentsRect)
Definition: kgetpanelbar.cpp:198
KGetPanelBar::KGetPanelBar
KGetPanelBar(QObject *parent, const QVariantList &args)
Definition: kgetpanelbar.cpp:152
KGetPanelBar::Private
Definition: kgetpanelbar_p.h:31
QGraphicsProxyWidget
KGetApplet
Definition: kgetapplet.h:68
KGetPanelBar::dataUpdated
void dataUpdated(const QString &name, const Plasma::DataEngine::Data &data)
Definition: kgetpanelbar.cpp:205
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:17 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kget

Skip menu "kget"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



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