• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.10.5 API Reference
  • KDE Home
  • Contact Us
 

KTNEF Library

  • ktnef
ktnefwriter.h
Go to the documentation of this file.
1 /*
2  ktnefwriter.cpp
3 
4  Copyright (C) 2002 Bo Thorsen <bo@sonofthor.dk>
5 
6  This file is part of KTNEF, the KDE TNEF support library/program.
7 
8  This library is free software; you can redistribute it and/or
9  modify it under the terms of the GNU Library General Public
10  License as published by the Free Software Foundation; either
11  version 2 of the License, or (at your option) any later version.
12 
13  This library 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 GNU
16  Library General Public License for more details.
17 
18  You should have received a copy of the GNU Library General Public License
19  along with this library; see the file COPYING.LIB. If not, write to
20  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21  Boston, MA 02110-1301, USA.
22  */
31 #ifndef KTNEFWRITER_H
32 #define KTNEFWRITER_H
33 
34 class QString;
35 class QVariant;
36 class QIODevice;
37 class QDataStream;
38 class QDateTime;
39 class QStringList;
40 
41 #include "ktnef_export.h"
42 
43 namespace KTnef {
44 
49 class KTNEF_EXPORT KTNEFWriter
50 {
51  public:
55  enum MessageType {
56  Appointment,
57  MeetingCancelled,
58  MeetingRequest,
59  MeetingNo,
60  MeetingYes,
61  MeetingTent
62  };
63 
67  enum Method {
68  PublishNew,
69  Obsolete,
70  RequestNew,
71  RequestUpdate,
72  Unknown
73  };
74 
78  enum Role {
79  ReqParticipant,
80  OptParticipant,
81  NonParticipant,
82  Chair
83  };
84 
88  enum PartStat {
89  NeedsAction,
90  Accepted,
91  Declined,
92  Tentative,
93  Delegated,
94  Completed,
95  InProcess
96  };
97 
101  enum Priority {
102  High = 2,
103  Normal = 3,
104  Low = 1
105  };
106 
110  enum AlarmAction {
111  Display
112  };
113 
117  KTNEFWriter();
118 
122  ~KTNEFWriter();
123 
131  void addProperty( int tag, int type, const QVariant &value );
132 
149  bool writeProperty( QDataStream &stream, int &bytes, int tag ) const;
150 
157  bool writeFile( QIODevice &file ) const;
158 
165  bool writeFile( QDataStream &stream ) const;
166 
173  void setSender( const QString &name, const QString &email );
174 
180  void setMessageType( MessageType methodType );
181 
187  void setMethod( Method method );
188 
192  void clearAttendees();
193 
203  void addAttendee( const QString &name, Role role, PartStat partstat,
204  bool rsvp, const QString &email );
205 
213  void setOrganizer( const QString &organizer );
214 
220  void setDtStart( const QDateTime &dtStart );
221 
227  void setDtEnd( const QDateTime &dtEnd );
228 
234  void setLocation( const QString &location );
235 
241  void setUID( const QString &uid );
242 
248  void setDtStamp( const QDateTime &dtStamp );
249 
255  void setCategories( const QStringList &categories );
256 
262  void setDescription( const QString &description );
263 
269  void setSummary( const QString &summary );
270 
276  void setPriority( Priority priority );
277 
285  void setAlarm( const QString &description, AlarmAction action,
286  const QDateTime &wakeBefore );
287 
288  private:
289  //@cond PRIVATE
290  class PrivateData;
291  PrivateData *const d;
292  //@endcond
293 
294  Q_DISABLE_COPY( KTNEFWriter )
295 };
296 
297 }
298 
299 #endif // KTNEFWRITER_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jul 13 2013 01:29:58 by doxygen 1.8.3.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KTNEF Library

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

kdepimlibs-4.10.5 API Reference

Skip menu "kdepimlibs-4.10.5 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
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