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

kalarm

  • sources
  • kde-4.14
  • kdepim
  • kalarm
startdaytimer.h
Go to the documentation of this file.
1 /*
2  * startdaytimer.h - timer triggered at the user-defined start-of-day time
3  * Program: kalarm
4  * Copyright © 2004,2005,2009 by David Jarvie <djarvie@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 
21 #ifndef STARTDAYTIMER_H
22 #define STARTDAYTIMER_H
23 
24 /* @file startdaytimer.h - timer triggered at the user-defined start-of-day time */
25 
26 #include "synchtimer.h"
27 
28 
35 class StartOfDayTimer : public DailyTimer
36 {
37  Q_OBJECT
38  public:
39  virtual ~StartOfDayTimer() { }
44  static void connect(QObject* receiver, const char* member)
45  { instance()->connecT(receiver, member); }
51  static void disconnect(QObject* receiver, const char* member = 0)
52  { if (mInstance) mInstance->disconnecT(receiver, member); }
53 
54  protected:
55  StartOfDayTimer();
56  static StartOfDayTimer* instance();
57 
58  private slots:
59  void startOfDayChanged();
60 
61  private:
62  static StartOfDayTimer* mInstance; // exists solely to receive signals
63 };
64 
65 #endif // STARTDAYTIMER_H
66 
67 // vim: et sw=4:
synchtimer.h
DailyTimer
StartOfDayTimer::~StartOfDayTimer
virtual ~StartOfDayTimer()
Definition: startdaytimer.h:39
StartOfDayTimer
StartOfDayTimer is an application-wide timer synchronized to the user-defined start-of-day time (set ...
Definition: startdaytimer.h:35
StartOfDayTimer::StartOfDayTimer
StartOfDayTimer()
Definition: startdaytimer.cpp:29
StartOfDayTimer::instance
static StartOfDayTimer * instance()
Definition: startdaytimer.cpp:35
StartOfDayTimer::connect
static void connect(QObject *receiver, const char *member)
Connect to the timer signal.
Definition: startdaytimer.h:44
QObject
StartOfDayTimer::disconnect
static void disconnect(QObject *receiver, const char *member=0)
Disconnect from the timer signal.
Definition: startdaytimer.h:51
DailyTimer::disconnecT
void disconnecT(QObject *receiver, const char *member=0)
DailyTimer::connecT
void connecT(QObject *receiver, const char *member)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kalarm

Skip menu "kalarm"
  • 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