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

kmail

  • sources
  • kde-4.14
  • kdepim
  • kmail
  • widgets
vacationscriptindicatorwidget.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2013-2015 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 VACATIONSCRIPTINDICATORWIDGET_H
19 #define VACATIONSCRIPTINDICATORWIDGET_H
20 
21 #include <QLabel>
22 class QHBoxLayout;
23 class QLabel;
24 namespace KMail {
25 
26 class ServerLabel : public QLabel
27 {
28  Q_OBJECT
29 public:
30  explicit ServerLabel(const QString &toolTip, QWidget *parent=0);
31  ~ServerLabel();
32 
33 Q_SIGNALS:
34  void clicked(const QString &serverName);
35 
36 protected:
37  void mouseReleaseEvent(QMouseEvent *event);
38 
39 private:
40  QString mServerName;
41 };
42 
43 class VacationLabel : public QLabel
44 {
45  Q_OBJECT
46 public:
47  explicit VacationLabel(const QString &text, QWidget *parent=0);
48  ~VacationLabel();
49 
50 Q_SIGNALS:
51  void clicked();
52 
53 protected:
54  void mouseReleaseEvent(QMouseEvent *event);
55 };
56 
57 class VacationScriptIndicatorWidget : public QWidget
58 {
59  Q_OBJECT
60 public:
61  explicit VacationScriptIndicatorWidget(QWidget *parent=0);
62  ~VacationScriptIndicatorWidget();
63 
64  void setVacationScriptActive(bool active, const QString &serverName);
65 
66  void updateIndicator();
67 
68  bool hasVacationScriptActive() const;
69 
70 Q_SIGNALS:
71  void clicked(const QString &serverName = QString());
72 
73 private:
74  void createIndicator();
75  QStringList mServerActive;
76  QHBoxLayout *mBoxLayout;
77  VacationLabel *mInfo;
78 };
79 }
80 
81 #endif // VACATIONSCRIPTINDICATORWIDGET_H
KMail::VacationScriptIndicatorWidget::clicked
void clicked(const QString &serverName=QString())
QWidget
KMail::ServerLabel::clicked
void clicked(const QString &serverName)
KMail::VacationLabel::clicked
void clicked()
QHBoxLayout
KMail::VacationLabel::~VacationLabel
~VacationLabel()
Definition: vacationscriptindicatorwidget.cpp:58
QMouseEvent
KMail::VacationScriptIndicatorWidget::setVacationScriptActive
void setVacationScriptActive(bool active, const QString &serverName)
Definition: vacationscriptindicatorwidget.cpp:81
KMail::VacationLabel::mouseReleaseEvent
void mouseReleaseEvent(QMouseEvent *event)
Definition: vacationscriptindicatorwidget.cpp:63
QLabel::event
virtual bool event(QEvent *e)
KMail::VacationScriptIndicatorWidget::~VacationScriptIndicatorWidget
~VacationScriptIndicatorWidget()
Definition: vacationscriptindicatorwidget.cpp:76
KMail::ServerLabel::~ServerLabel
~ServerLabel()
Definition: vacationscriptindicatorwidget.cpp:36
KMail::ServerLabel
Definition: vacationscriptindicatorwidget.h:26
QLabel::text
QString text() const
QString
QStringList
KMail::VacationScriptIndicatorWidget::VacationScriptIndicatorWidget
VacationScriptIndicatorWidget(QWidget *parent=0)
Definition: vacationscriptindicatorwidget.cpp:69
KMail::VacationScriptIndicatorWidget::hasVacationScriptActive
bool hasVacationScriptActive() const
Definition: vacationscriptindicatorwidget.cpp:123
KMail::VacationLabel::VacationLabel
VacationLabel(const QString &text, QWidget *parent=0)
Definition: vacationscriptindicatorwidget.cpp:48
KMail::ServerLabel::ServerLabel
ServerLabel(const QString &toolTip, QWidget *parent=0)
Definition: vacationscriptindicatorwidget.cpp:26
QWidget::toolTip
QString toolTip() const
KMail::VacationLabel
Definition: vacationscriptindicatorwidget.h:43
KMail::VacationScriptIndicatorWidget::updateIndicator
void updateIndicator()
Definition: vacationscriptindicatorwidget.cpp:113
QLabel
QObject::parent
QObject * parent() const
KMail::ServerLabel::mouseReleaseEvent
void mouseReleaseEvent(QMouseEvent *event)
Definition: vacationscriptindicatorwidget.cpp:41
KMail::VacationScriptIndicatorWidget
Definition: vacationscriptindicatorwidget.h:57
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:33 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kmail

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

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer
  • pimprint

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