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

korganizer

  • sources
  • kde-4.12
  • kdepim
  • korganizer
  • views
  • timespentview
kotimespentview.h
Go to the documentation of this file.
1 /*
2  This file is part of KOrganizer.
3 
4  Copyright (c) 2007 Bruno Virlet <bruno.virlet@gmail.com>
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  As a special exception, permission is given to link this program
21  with any edition of Qt, and distribute the resulting executable,
22  without including the source code for Qt in the source distribution.
23 */
24 
25 #ifndef KORG_VIEWS_KOTIMESPENTVIEW_H
26 #define KORG_VIEWS_KOTIMESPENTVIEW_H
27 
28 #include "korganizer/baseview.h"
29 #include <Akonadi/Calendar/ETMCalendar>
30 
31 namespace EventViews {
32  class TimeSpentView;
33 }
34 
38 class KOTimeSpentView : public KOrg::BaseView
39 {
40  Q_OBJECT
41  public:
42  explicit KOTimeSpentView( QWidget *parent = 0 );
43  ~KOTimeSpentView();
44 
45  virtual int currentDateCount() const;
46 
47  virtual Akonadi::Item::List selectedIncidences()
48  {
49  return Akonadi::Item::List();
50  }
51 
52  KCalCore::DateList selectedIncidenceDates()
53  {
54  return KCalCore::DateList();
55  }
56 
57  void setCalendar( const Akonadi::ETMCalendar::Ptr &cal );
58 
59  public Q_SLOTS:
60  virtual void updateView();
61  virtual void showDates( const QDate &start, const QDate &end,
62  const QDate &preferredMonth = QDate() );
63  virtual void showIncidences( const Akonadi::Item::List &incidenceList, const QDate &date );
64 
65  void changeIncidenceDisplay( const Akonadi::Item &, Akonadi::IncidenceChanger::ChangeType );
66  virtual KOrg::CalPrinterBase::PrintType printType() const;
67 
68  private:
69  EventViews::TimeSpentView *mView;
70 };
71 
72 #endif
KOTimeSpentView::showDates
virtual void showDates(const QDate &start, const QDate &end, const QDate &preferredMonth=QDate())
Definition: kotimespentview.cpp:110
KOTimeSpentView::printType
virtual KOrg::CalPrinterBase::PrintType printType() const
Definition: kotimespentview.cpp:133
KOTimeSpentView
This view show the time spent on each category.
Definition: kotimespentview.h:38
KOTimeSpentView::~KOTimeSpentView
~KOTimeSpentView()
Definition: kotimespentview.cpp:101
baseview.h
QWidget
KOTimeSpentView::KOTimeSpentView
KOTimeSpentView(QWidget *parent=0)
Definition: kotimespentview.cpp:36
KOTimeSpentView::currentDateCount
virtual int currentDateCount() const
Returns the number of currently shown dates.
Definition: kotimespentview.cpp:105
KOTimeSpentView::updateView
virtual void updateView()
Definition: kotimespentview.cpp:128
KOrg::BaseView
This class provides an interface for all views being displayed within the main calendar view...
Definition: baseview.h:51
KOTimeSpentView::selectedIncidences
virtual Akonadi::Item::List selectedIncidences()
Definition: kotimespentview.h:47
KOTimeSpentView::showIncidences
virtual void showIncidences(const Akonadi::Item::List &incidenceList, const QDate &date)
Definition: kotimespentview.cpp:116
KOTimeSpentView::changeIncidenceDisplay
void changeIncidenceDisplay(const Akonadi::Item &, Akonadi::IncidenceChanger::ChangeType)
Definition: kotimespentview.cpp:122
KOTimeSpentView::selectedIncidenceDates
KCalCore::DateList selectedIncidenceDates()
Returns a list of the dates of selected events.
Definition: kotimespentview.h:52
KOTimeSpentView::setCalendar
void setCalendar(const Akonadi::ETMCalendar::Ptr &cal)
Definition: kotimespentview.cpp:143
KOrg::CalPrinterBase::PrintType
PrintType
Definition: printplugin.h:45
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:56:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

korganizer

Skip menu "korganizer"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • 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