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

ktimetracker

  • sources
  • kde-4.12
  • kdepim
  • ktimetracker
kttcalendar.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012 by Sérgio Martins <iamsergio@gmail.com>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program; if not, write to the
16  * Free Software Foundation, Inc.
17  * 51 Franklin Street, Fifth Floor
18  * Boston, MA 02110-1301 USA.
19  *
20  */
21 
22 #ifndef _KTIMETRACKER_CALENDAR_H_
23 #define _KTIMETRACKER_CALENDAR_H_
24 
25 #include <KCalCore/MemoryCalendar>
26 #include <QWeakPointer>
27 
28 namespace KTimeTracker {
29  class KTTCalendar : public KCalCore::MemoryCalendar {
30  Q_OBJECT
31  public:
32  typedef QSharedPointer<KTimeTracker::KTTCalendar> Ptr;
33  ~KTTCalendar(); bool reload(); bool save();
36 
44  static KTimeTracker::KTTCalendar::Ptr createInstance( const QString &filename,
45  bool monitorFile );
46  QWeakPointer<KTimeTracker::KTTCalendar> weakPointer() const;
47  void setWeakPointer( const QWeakPointer<KTimeTracker::KTTCalendar> &);
48  Q_SIGNALS:
49  void calendarChanged();
50  private:
51  KTTCalendar();
52  explicit KTTCalendar( const QString &filename, bool monitorFile );
53  class Private;
54  Private *const d;
55  };
56 }
57 
58 #endif
KTimeTracker::KTTCalendar
Definition: kttcalendar.h:29
KTimeTracker::KTTCalendar::save
bool save()
reimp
Definition: kttcalendar.cpp:94
KTimeTracker::KTTCalendar::reload
bool reload()
reimp
Definition: kttcalendar.cpp:62
KTimeTracker::KTTCalendar::Ptr
QSharedPointer< KTimeTracker::KTTCalendar > Ptr
Definition: kttcalendar.h:32
KTimeTracker::KTTCalendar::~KTTCalendar
~KTTCalendar()
Definition: kttcalendar.cpp:57
KTimeTracker::KTTCalendar::createInstance
static KTimeTracker::KTTCalendar::Ptr createInstance(const QString &filename, bool monitorFile)
Creates a new KTTCalendar and calls KTTCalendar::setWeakPointer(), so we can do KTTCalendar::Ptr ptr ...
Definition: kttcalendar.cpp:86
KTimeTracker::KTTCalendar::setWeakPointer
void setWeakPointer(const QWeakPointer< KTimeTracker::KTTCalendar > &)
Definition: kttcalendar.cpp:80
KTimeTracker::KTTCalendar::calendarChanged
void calendarChanged()
KTimeTracker::KTTCalendar::weakPointer
QWeakPointer< KTimeTracker::KTTCalendar > weakPointer() const
Definition: kttcalendar.cpp:75
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

ktimetracker

Skip menu "ktimetracker"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules

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