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

korgac

  • sources
  • kde-4.12
  • 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 #if !defined(Q_WS_WINCE)
30 # include <KSessionManager>
31 #endif
32 
33 #include <QTimer>
34 #include <QDateTime>
35 
36 class AlarmDialog;
37 class AlarmDockWindow;
38 
39 namespace Akonadi {
40  class Item;
41  class EntityTreeModel;
42 }
43 
44 #if !defined(Q_WS_WINCE)
45 class KOAlarmClient : public QObject, public KSessionManager
46 #else
47 class KOAlarmClient : public QObject
48 #endif
49 {
50  Q_OBJECT
51  public:
52  explicit KOAlarmClient( QObject *parent = 0 );
53  ~KOAlarmClient();
54 
55 #if !defined(Q_WS_WINCE)
56  bool commitData( QSessionManager & );
57 #endif
58 
59  // DBUS interface
60  void quit();
61  void hide();
62  void show();
63  void forceAlarmCheck();
64  void dumpDebug();
65  QStringList dumpAlarms();
66 
67  void debugShowDialog();
68 
69  public slots:
70  void slotQuit();
71 
72  protected slots:
73  void deferredInit();
74  void checkAlarms();
75 
76  signals:
77  void reminderCount( int );
78  void saveAllSignal();
79 
80  private:
81  bool dockerEnabled();
82  bool collectionsAvailable() const;
83  void createReminder( const Akonadi::ETMCalendar::Ptr &calendar,
84  const Akonadi::Item &incidence,
85  const QDateTime &dt, const QString &displayText );
86  void saveLastCheckTime();
87 
88  AlarmDockWindow *mDocker; // the panel icon
89  Akonadi::ETMCalendar::Ptr mCalendar;
90  Akonadi::EntityTreeModel *mETM;
91 
92  QDateTime mLastChecked;
93  QTimer mCheckTimer;
94 
95  AlarmDialog *mDialog;
96 };
97 
98 #endif
KOAlarmClient::saveAllSignal
void saveAllSignal()
KOAlarmClient::debugShowDialog
void debugShowDialog()
Definition: koalarmclient.cpp:330
KOAlarmClient::commitData
bool commitData(QSessionManager &)
Definition: koalarmclient.cpp:289
KOAlarmClient::deferredInit
void deferredInit()
Definition: koalarmclient.cpp:117
KOAlarmClient::hide
void hide()
Definition: koalarmclient.cpp:335
KOAlarmClient
Definition: koalarmclient.h:45
KOAlarmClient::show
void show()
Definition: koalarmclient.cpp:343
QObject
KOAlarmClient::quit
void quit()
Definition: koalarmclient.cpp:280
KOAlarmClient::~KOAlarmClient
~KOAlarmClient()
Definition: koalarmclient.cpp:96
KSessionManager
AlarmDialog
Definition: alarmdialog.h:58
KOAlarmClient::forceAlarmCheck
void forceAlarmCheck()
Definition: koalarmclient.cpp:297
AlarmDockWindow
Definition: alarmdockwindow.h:33
KOAlarmClient::checkAlarms
void checkAlarms()
Definition: koalarmclient.cpp:190
KOAlarmClient::reminderCount
void reminderCount(int)
KOAlarmClient::dumpDebug
void dumpDebug()
Definition: koalarmclient.cpp:303
KOAlarmClient::slotQuit
void slotQuit()
Definition: koalarmclient.cpp:266
KOAlarmClient::KOAlarmClient
KOAlarmClient(QObject *parent=0)
Definition: koalarmclient.cpp:61
KOAlarmClient::dumpAlarms
QStringList dumpAlarms()
Definition: koalarmclient.cpp:310
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:50 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

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