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

calendarsupport

  • sources
  • kde-4.14
  • kdepim
  • calendarsupport
cellitem.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2003 Cornelius Schumacher <schumacher@kde.org>
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 Free Software Foundation, Inc.,
16  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 
18  As a special exception, permission is given to link this program
19  with any edition of Qt, and distribute the resulting executable,
20  without including the source code for Qt in the source distribution.
21 */
22 #ifndef CALENDARSUPPORT_CELLITEM_H
23 #define CALENDARSUPPORT_CELLITEM_H
24 
25 #include "calendarsupport_export.h"
26 #include <QList>
27 
28 namespace CalendarSupport {
29 
30 class CALENDARSUPPORT_EXPORT CellItem
31 {
32  public:
33  CellItem()
34  : mSubCells( 0 ), mSubCell( -1 )
35  {
36  }
37  virtual ~CellItem() {}
38  void setSubCells( int v ) { mSubCells = v; }
39  int subCells() const { return mSubCells; }
40 
41  void setSubCell( int v ) { mSubCell = v; }
42  int subCell() const { return mSubCell; }
43 
44  virtual bool overlaps( CellItem *other ) const = 0;
45 
46  virtual QString label() const;
47 
56  static QList<CellItem*> placeItem( QList<CellItem*> cells, CellItem *placeItem );
57 
58  private:
59  int mSubCells;
60  int mSubCell;
61 };
62 
63 }
64 
65 #endif
calendarsupport_export.h
CalendarSupport::CellItem::subCell
int subCell() const
Definition: cellitem.h:42
CalendarSupport::CellItem::setSubCell
void setSubCell(int v)
Definition: cellitem.h:41
CalendarSupport::CellItem::~CellItem
virtual ~CellItem()
Definition: cellitem.h:37
CalendarSupport::CellItem::CellItem
CellItem()
Definition: cellitem.h:33
QString
QList
CalendarSupport::CellItem::subCells
int subCells() const
Definition: cellitem.h:39
CalendarSupport::CellItem
Definition: cellitem.h:30
CalendarSupport::CellItem::setSubCells
void setSubCells(int v)
Definition: cellitem.h:38
CALENDARSUPPORT_EXPORT
#define CALENDARSUPPORT_EXPORT
Definition: calendarsupport_export.h:36
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:31:15 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

calendarsupport

Skip menu "calendarsupport"
  • 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
  • pimprint

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