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

KonsoleKalendar

  • sources
  • kde-4.12
  • kdepim
  • console
  • konsolekalendar
konsolekalendar.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * konsolekalendar.h *
3  * *
4  * KonsoleKalendar is a command line interface to KDE calendars *
5  * Copyright (C) 2002-2004 Tuukka Pasanen <illuusio@mailcity.com> *
6  * Copyright (C) 2003-2005 Allen Winter <winter@kde.org> *
7  * *
8  * This program is free software; you can redistribute it and/or modify *
9  * it under the terms of the GNU General Public License as published by *
10  * the Free Software Foundation; either version 2 of the License, or *
11  * (at your option) any later version. *
12  * *
13  * This program is distributed in the hope that it will be useful, *
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16  * GNU General Public License for more details. *
17  * *
18  * You should have received a copy of the GNU General Public License *
19  * along with this program; if not, write to the Free Software *
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
21  * *
22  * As a special exception, permission is given to link this program *
23  * with any edition of Qt, and distribute the resulting executable, *
24  * without including the source code for Qt in the source distribution. *
25  * *
26  ******************************************************************************/
27 
28 #ifndef KONSOLEKALENDAR_H
29 #define KONSOLEKALENDAR_H
30 
31 #include "konsolekalendarvariables.h"
32 
33 #include <KCalCore/Event>
34 #include <Akonadi/Calendar/FetchJobCalendar>
35 
36 #include <QDateTime>
37 
38 class QTextStream;
39 
50 class KonsoleKalendar
51 {
52  public:
59  explicit KonsoleKalendar( KonsoleKalendarVariables *variables );
60 
64  ~KonsoleKalendar();
65 
69  bool showInstance();
70 
74  bool importCalendar();
75 
79  bool addEvent();
80 
84  bool changeEvent();
85 
89  bool deleteEvent();
90 
98  bool isEvent( const QDateTime &startdate, const QDateTime &enddate, const QString &summary );
99 
103  bool createCalendar();
104 
108  bool printCalendarList();
109 
110  private:
114  void printSpecs();
115 
119  bool createAkonadiResource(const QString &icalFileName);
120 
128  bool printEventList( QTextStream *ts, KCalCore::Event::List *eventList, QDate dt );
129 
137  bool printEvent( QTextStream *ts, const KCalCore::Event::Ptr &event, QDate dt );
138 
142  KonsoleKalendarVariables *m_variables;
143 
147  Akonadi::FetchJobCalendar::Ptr m_calendar;
148 
152  QDate m_saveDate;
153 };
154 
155 #endif
KonsoleKalendar::changeEvent
bool changeEvent()
Change event.
Definition: konsolekalendar.cpp:414
KonsoleKalendar::printCalendarList
bool printCalendarList()
Prints the available calendars.
Definition: konsolekalendar.cpp:81
KonsoleKalendarVariables
This class provides all the variables for the program.
Definition: konsolekalendarvariables.h:73
KonsoleKalendar::addEvent
bool addEvent()
Add event to calendar.
Definition: konsolekalendar.cpp:404
KonsoleKalendar::showInstance
bool showInstance()
Visualize what we need.
Definition: konsolekalendar.cpp:161
KonsoleKalendar::importCalendar
bool importCalendar()
Imports calendar file.
Definition: konsolekalendar.cpp:73
KonsoleKalendar::isEvent
bool isEvent(const QDateTime &startdate, const QDateTime &enddate, const QString &summary)
Detect if event already exists.
Definition: konsolekalendar.cpp:435
KonsoleKalendar::~KonsoleKalendar
~KonsoleKalendar()
Destructor.
Definition: konsolekalendar.cpp:69
KonsoleKalendar::createCalendar
bool createCalendar()
Creates calendar file (If it doesn't exists)
Definition: konsolekalendar.cpp:136
KonsoleKalendar::KonsoleKalendar
KonsoleKalendar(KonsoleKalendarVariables *variables)
Constructs a KonsoleKalendar object from command line arguments.
Definition: konsolekalendar.cpp:64
KonsoleKalendar::deleteEvent
bool deleteEvent()
Delete event.
Definition: konsolekalendar.cpp:425
KonsoleKalendar
The base class of the project.
Definition: konsolekalendar.h:50
konsolekalendarvariables.h
Provides the KonsoleKalendarVariables class definition.
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:04 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KonsoleKalendar

Skip menu "KonsoleKalendar"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Members
  • File List
  • File Members
  • Related Pages

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