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

kalarm

  • sources
  • kde-4.12
  • kdepim
  • kalarm
newalarmaction.h
Go to the documentation of this file.
1 /*
2  * newalarmaction.h - menu action to select a new alarm type
3  * Program: kalarm
4  * Copyright © 2007-2009,2011 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 NEWALARMACTION_H
22 #define NEWALARMACTION_H
23 
24 #include "editdlg.h"
25 #include <kactionmenu.h>
26 #include <QMap>
27 
28 class KAction;
29 class TemplateMenuAction;
30 
31 class NewAlarmAction : public KActionMenu
32 {
33  Q_OBJECT
34  public:
35  NewAlarmAction(bool templates, const QString& label, QObject* parent);
36  virtual ~NewAlarmAction() {}
37  KAction* displayAlarmAction() const { return mDisplayAction; }
38  KAction* commandAlarmAction() const { return mCommandAction; }
39  KAction* emailAlarmAction() const { return mEmailAction; }
40  KAction* audioAlarmAction() const { return mAudioAction; }
41  TemplateMenuAction* fromTemplateAlarmAction() const { return mTemplateAction; }
42 
43  signals:
44  void selected(EditAlarmDlg::Type);
45 
46  private slots:
47  void slotSelected(QAction*);
48  void slotInitMenu();
49  void slotCalendarStatusChanged();
50 
51  private:
52  KAction* mDisplayAction;
53  KAction* mCommandAction;
54  KAction* mEmailAction;
55  KAction* mAudioAction;
56  TemplateMenuAction* mTemplateAction; // New From Template action, for non-template menu only
57  QMap<QAction*, EditAlarmDlg::Type> mTypes;
58 };
59 
60 #endif // NEWALARMACTION_H
61 
62 // vim: et sw=4:
NewAlarmAction::NewAlarmAction
NewAlarmAction(bool templates, const QString &label, QObject *parent)
Definition: newalarmaction.cpp:55
editdlg.h
NewAlarmAction::fromTemplateAlarmAction
TemplateMenuAction * fromTemplateAlarmAction() const
Definition: newalarmaction.h:41
QObject
NewAlarmAction::selected
void selected(EditAlarmDlg::Type)
NewAlarmAction::emailAlarmAction
KAction * emailAlarmAction() const
Definition: newalarmaction.h:39
NewAlarmAction::audioAlarmAction
KAction * audioAlarmAction() const
Definition: newalarmaction.h:40
TemplateMenuAction
Definition: templatemenuaction.h:29
NewAlarmAction::commandAlarmAction
KAction * commandAlarmAction() const
Definition: newalarmaction.h:38
NewAlarmAction::~NewAlarmAction
virtual ~NewAlarmAction()
Definition: newalarmaction.h:36
KActionMenu
EditAlarmDlg::Type
Type
Definition: editdlg.h:65
NewAlarmAction
Definition: newalarmaction.h:31
NewAlarmAction::displayAlarmAction
KAction * displayAlarmAction() const
Definition: newalarmaction.h:37
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:59:10 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

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