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

korgac

  • sources
  • kde-4.14
  • kdepim
  • korgac
koalarmclient.h
Go to the documentation of this file.
1 /*
2  This file is part of the KDE reminder agent.
3 
4  Copyright (c) 2002,2003 Cornelius Schumacher <schumacher@kde.org>
5 
6  This program is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or
9  (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License along
17  with this program; if not, write to the Free Software Foundation, Inc.,
18  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 
20  As a special exception, permission is given to link this program
21  with any edition of Qt, and distribute the resulting executable,
22  without including the source code for Qt in the source distribution.
23 */
24 #ifndef KORGAC_KOALARMCLIENT_H
25 #define KORGAC_KOALARMCLIENT_H
26 
27 #include <Akonadi/Calendar/ETMCalendar>
28 
29 #include <KSessionManager>
30 
31 #include <QTimer>
32 #include <QDateTime>
33 
34 class AlarmDialog;
35 class AlarmDockWindow;
36 
37 namespace Akonadi {
38  class Item;
39  class EntityTreeModel;
40 }
41 
42 class KOAlarmClient : public QObject, public KSessionManager
43 {
44  Q_OBJECT
45  public:
46  explicit KOAlarmClient( QObject *parent = 0 );
47  ~KOAlarmClient();
48 
49  bool commitData( QSessionManager & );
50 
51  // DBUS interface
52  void quit();
53  void hide();
54  void show();
55  void forceAlarmCheck();
56  QString dumpDebug();
57  QStringList dumpAlarms();
58 
59  public slots:
60  void slotQuit();
61 
62  protected slots:
63  void deferredInit();
64  void checkAlarms();
65 
66  signals:
67  void reminderCount( int );
68  void saveAllSignal();
69 
70  private:
71  bool dockerEnabled();
72  bool collectionsAvailable() const;
73  void createReminder( const Akonadi::ETMCalendar::Ptr &calendar,
74  const Akonadi::Item &incidence,
75  const QDateTime &dt, const QString &displayText );
76  void saveLastCheckTime();
77 
78  AlarmDockWindow *mDocker; // the panel icon
79  Akonadi::ETMCalendar::Ptr mCalendar;
80  Akonadi::EntityTreeModel *mETM;
81 
82  QDateTime mLastChecked;
83  QTimer mCheckTimer;
84 
85  AlarmDialog *mDialog;
86 };
87 
88 #endif
KOAlarmClient::saveAllSignal
void saveAllSignal()
KOAlarmClient::dumpDebug
QString dumpDebug()
Definition: koalarmclient.cpp:300
QSessionManager
KOAlarmClient::commitData
bool commitData(QSessionManager &)
Definition: koalarmclient.cpp:287
KOAlarmClient::deferredInit
void deferredInit()
Definition: koalarmclient.cpp:116
KOAlarmClient::hide
void hide()
Definition: koalarmclient.cpp:332
KOAlarmClient
Definition: koalarmclient.h:42
KOAlarmClient::show
void show()
Definition: koalarmclient.cpp:340
KOAlarmClient::quit
void quit()
Definition: koalarmclient.cpp:279
KOAlarmClient::~KOAlarmClient
~KOAlarmClient()
Definition: koalarmclient.cpp:95
KSessionManager
QTimer
QObject
QString
AlarmDialog
Definition: alarmdialog.h:58
QStringList
KOAlarmClient::forceAlarmCheck
void forceAlarmCheck()
Definition: koalarmclient.cpp:294
AlarmDockWindow
Definition: alarmdockwindow.h:33
KOAlarmClient::checkAlarms
void checkAlarms()
Definition: koalarmclient.cpp:189
KOAlarmClient::reminderCount
void reminderCount(int)
KOAlarmClient::slotQuit
void slotQuit()
Definition: koalarmclient.cpp:265
KOAlarmClient::KOAlarmClient
KOAlarmClient(QObject *parent=0)
Definition: koalarmclient.cpp:60
QObject::parent
QObject * parent() const
QDateTime
KOAlarmClient::dumpAlarms
QStringList dumpAlarms()
Definition: koalarmclient.cpp:308
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:25 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

korgac

Skip menu "korgac"
  • Main Page
  • Namespace List
  • 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