• Skip to content
  • Skip to link menu
KDE 4.7 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • KDE Home
  • Contact Us
 

KCalCore Library

schedulemessage.h
00001 /*
00002   This file is part of the kcalcore library.
00003 
00004   Copyright (c) 2001-2003 Cornelius Schumacher <schumacher@kde.org>
00005 
00006   This library is free software; you can redistribute it and/or
00007   modify it under the terms of the GNU Library General Public
00008   License as published by the Free Software Foundation; either
00009   version 2 of the License, or (at your option) any later version.
00010 
00011   This library is distributed in the hope that it will be useful,
00012   but WITHOUT ANY WARRANTY; without even the implied warranty of
00013   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014   Library General Public License for more details.
00015 
00016   You should have received a copy of the GNU Library General Public License
00017   along with this library; see the file COPYING.LIB.  If not, write to
00018   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019   Boston, MA 02110-1301, USA.
00020 */
00021 #ifndef KCALCORE_SCHEDULEMESSAGE_H
00022 #define KCALCORE_SCHEDULEMESSAGE_H
00023 
00024 #include "incidencebase.h"
00025 
00026 #include "kcalcore_export.h"
00027 
00028 namespace KCalCore {
00029 
00030 class IncidenceBase;
00031 
00035 enum iTIPMethod {
00036   iTIPPublish,       
00037   iTIPRequest,       
00038   iTIPReply,         
00039   iTIPAdd,           
00040   iTIPCancel,        
00041   iTIPRefresh,       
00042   iTIPCounter,       
00043   iTIPDeclineCounter,
00044   iTIPNoMethod       
00045 };
00046 
00054 class KCALCORE_EXPORT ScheduleMessage
00055 {
00056   public:
00060     enum Status {
00061       PublishNew,      
00062       PublishUpdate,   
00063       Obsolete,        
00064       RequestNew,      
00065       RequestUpdate,   
00066       Unknown          
00067     };
00068 
00072     typedef QSharedPointer<ScheduleMessage> Ptr;
00073 
00080     ScheduleMessage( IncidenceBase::Ptr incidence, iTIPMethod method, Status status );
00081 
00085     ~ScheduleMessage();
00086 
00090     IncidenceBase::Ptr event() const;
00091 
00095     iTIPMethod method() const;
00096 
00101     static QString methodName( iTIPMethod method );
00102 
00106     Status status() const;
00107 
00111     QString error() const;
00112 
00113   private:
00114     //@cond PRIVATE
00115     Q_DISABLE_COPY( ScheduleMessage )
00116     class Private;
00117     Private *const d;
00118     //@endcond
00119 };
00120 
00121 }
00122 
00123 #endif

KCalCore Library

Skip menu "KCalCore Library"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.7.5
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal