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

KTNEF Library

  • sources
  • kde-4.12
  • kdepimlibs
  • 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 #include <qglobal.h>
43 
44 namespace KTnef {
45 
50 class KTNEF_EXPORT KTNEFWriter
51 {
52  public:
56  enum MessageType {
57  Appointment,
58  MeetingCancelled,
59  MeetingRequest,
60  MeetingNo,
61  MeetingYes,
62  MeetingTent
63  };
64 
68  enum Method {
69  PublishNew,
70  Obsolete,
71  RequestNew,
72  RequestUpdate,
73  Unknown
74  };
75 
79  enum Role {
80  ReqParticipant,
81  OptParticipant,
82  NonParticipant,
83  Chair
84  };
85 
89  enum PartStat {
90  NeedsAction,
91  Accepted,
92  Declined,
93  Tentative,
94  Delegated,
95  Completed,
96  InProcess
97  };
98 
102  enum Priority {
103  High = 2,
104  Normal = 3,
105  Low = 1
106  };
107 
111  enum AlarmAction {
112  Display
113  };
114 
118  KTNEFWriter();
119 
123  ~KTNEFWriter();
124 
132  void addProperty( int tag, int type, const QVariant &value );
133 
150  bool writeProperty( QDataStream &stream, int &bytes, int tag ) const;
151 
158  bool writeFile( QIODevice &file ) const;
159 
166  bool writeFile( QDataStream &stream ) const;
167 
174  void setSender( const QString &name, const QString &email );
175 
181  void setMessageType( MessageType methodType );
182 
188  void setMethod( Method method );
189 
193  void clearAttendees();
194 
204  void addAttendee( const QString &name, Role role, PartStat partstat,
205  bool rsvp, const QString &email );
206 
214  void setOrganizer( const QString &organizer );
215 
221  void setDtStart( const QDateTime &dtStart );
222 
228  void setDtEnd( const QDateTime &dtEnd );
229 
235  void setLocation( const QString &location );
236 
242  void setUID( const QString &uid );
243 
249  void setDtStamp( const QDateTime &dtStamp );
250 
256  void setCategories( const QStringList &categories );
257 
263  void setDescription( const QString &description );
264 
270  void setSummary( const QString &summary );
271 
277  void setPriority( Priority priority );
278 
286  void setAlarm( const QString &description, AlarmAction action,
287  const QDateTime &wakeBefore );
288 
289  private:
290  //@cond PRIVATE
291  class PrivateData;
292  PrivateData *const d;
293  //@endcond
294 
295  Q_DISABLE_COPY( KTNEFWriter )
296 };
297 
298 }
299 
300 #endif // KTNEFWRITER_H
KTnef::KTNEFWriter::Delegated
Delegated the task to another.
Definition: ktnefwriter.h:94
KTnef::KTNEFWriter::Accepted
Accepted the task/invitation.
Definition: ktnefwriter.h:91
KTnef::KTNEFWriter::Priority
Priority
The different priorities.
Definition: ktnefwriter.h:102
KTnef::KTNEFWriter::PartStat
PartStat
The different types of participant statuses.
Definition: ktnefwriter.h:89
KTnef::KTNEFWriter::MeetingRequest
Meeting request.
Definition: ktnefwriter.h:59
KTnef::KTNEFWriter::MeetingNo
Negative response to a meeting request.
Definition: ktnefwriter.h:60
KTnef::KTNEFWriter::MeetingYes
Affirmative response to a meeting request.
Definition: ktnefwriter.h:61
KTnef::KTNEFWriter::RequestNew
Request a new message.
Definition: ktnefwriter.h:71
KTnef::KTNEFWriter
Manages the writing of TNEF attachments.
Definition: ktnefwriter.h:50
KTnef::KTNEFWriter::MeetingCancelled
The meeting is cancelled.
Definition: ktnefwriter.h:58
KTnef::KTNEFWriter::MessageType
MessageType
The different types of messages.
Definition: ktnefwriter.h:56
KTnef::KTNEFWriter::ReqParticipant
Required participant.
Definition: ktnefwriter.h:80
KTnef::KTNEFWriter::Obsolete
Replace the message.
Definition: ktnefwriter.h:70
KTnef::KTNEFWriter::Declined
Declined the task/invitation.
Definition: ktnefwriter.h:92
KTnef::KTNEFWriter::PublishNew
Publish new.
Definition: ktnefwriter.h:69
KTnef::KTNEFWriter::OptParticipant
Optional participant.
Definition: ktnefwriter.h:81
KTnef::KTNEFWriter::Role
Role
The different types of meeting roles.
Definition: ktnefwriter.h:79
KTnef::KTNEFWriter::Tentative
Tentatively accepted the task/invitation.
Definition: ktnefwriter.h:93
KTnef::KTNEFWriter::NonParticipant
Non-participant.
Definition: ktnefwriter.h:82
KTnef::KTNEFWriter::Method
Method
The different types of message statuses.
Definition: ktnefwriter.h:68
KTnef::KTNEFWriter::NeedsAction
No information about the task/invitation received.
Definition: ktnefwriter.h:90
KTnef::KTNEFWriter::Completed
Completed the task.
Definition: ktnefwriter.h:95
KTnef::KTNEFWriter::Appointment
Appointment.
Definition: ktnefwriter.h:57
KTnef::KTNEFWriter::RequestUpdate
Request an update.
Definition: ktnefwriter.h:72
KTnef::KTNEFWriter::AlarmAction
AlarmAction
The different alarm actions.
Definition: ktnefwriter.h:111
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:01:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KTNEF Library

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

kdepimlibs API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kldap
  • kmbox
  • kmime
  • kpimidentities
  • kpimtextedit
  • kresources
  • ktnef
  • kxmlrpcclient
  • microblog

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