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

korganizer/korgac

alarmdialog.h

Go to the documentation of this file.
00001 /*
00002   This file is part of the KDE reminder daemon.
00003 
00004   Copyright (c) 2000 Cornelius Schumacher <schumacher@kde.org>
00005 
00006   This program is free software; you can redistribute it and/or modify
00007   it under the terms of the GNU General Public License as published by
00008   the Free Software Foundation; either version 2 of the License, or
00009   (at your option) any later version.
00010 
00011   This program is distributed in the hope that it will be useful,
00012   but WITHOUT ANY WARRANTY; without even the implied warranty of
00013   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00014   GNU General Public License for more details.
00015 
00016   You should have received a copy of the GNU General Public License along
00017   with this program; if not, write to the Free Software Foundation, Inc.,
00018   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00019 
00020   As a special exception, permission is given to link this program
00021   with any edition of Qt, and distribute the resulting executable,
00022   without including the source code for Qt in the source distribution.
00023 */
00024 #ifndef ALARMDIALOG_H
00025 #define ALARMDIALOG_H
00026 
00027 #include <kcal/incidence.h>
00028 
00029 #include <kdialog.h>
00030 
00031 #include <QTimer>
00032 #include <QDateTime>
00033 
00034 using namespace KCal;
00035 
00036 class ReminderListItem;
00037 class KOEventViewer;
00038 class KComboBox;
00039 class QTreeWidget;
00040 class QSpinBox;
00041 
00042 class AlarmDialog : public KDialog
00043 {
00044   Q_OBJECT
00045   public:
00046     AlarmDialog( QWidget *parent = 0 );
00047     virtual ~AlarmDialog();
00048 
00049     void addIncidence( Incidence *incidence, const QDateTime &reminderAt );
00050     void setRemindAt( const QDateTime &dt );
00051     void eventNotification();
00052 
00053   public slots:
00054     void slotOk();
00055     void slotUser1();
00056     void slotUser2();
00057     void slotUser3();
00058     void slotSave();
00059     void wakeUp();
00060     void show();
00061     void suspend();
00062     void suspendAll();
00063     void dismissAll();
00064     /*reimp*/
00065     void accept();
00066 
00067   signals:
00068     void reminderCount( int count );
00069 
00070   private Q_SLOTS:
00071     void update();
00072 
00073   private:
00074     bool startKOrganizer();
00075     void setTimer();
00076     int activeCount();
00077     QList<ReminderListItem *> selectedItems() const;
00078     void updateButtons();
00079     void showDetails();
00080 
00081     QTreeWidget *mIncidenceTree;
00082     KOEventViewer *mDetailView;
00083 
00084     QSpinBox *mSuspendSpin;
00085     KComboBox *mSuspendUnit;
00086     QTimer mSuspendTimer;
00087 };
00088 
00089 #endif

korganizer/korgac

Skip menu "korganizer/korgac"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  •   doc
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal