libkdepim Library API Documentation

kincidenceformatter.h

00001 #ifndef KINCIDENCENFORMATTER_H
00002 #define KINCIDENCENFORMATTER_H
00003 
00004 #include <qstring.h>
00005 #include <qobject.h>
00006 
00007 #include "libkcal/incidence.h"
00008 #include "libkcal/event.h"
00009 #include "libkcal/todo.h"
00010 #include "libkcal/journal.h"
00011 
00012 using namespace KCal;
00013 
00014 class KIncidenceFormatter : public QObject
00015 {
00016   public:
00017     static KIncidenceFormatter* instance();
00018     KIncidenceFormatter();
00019     ~KIncidenceFormatter();
00020     QString getFormattedText( Incidence * inc );
00021  
00022     void setEvent(Event *event);
00023     void setTodo(Todo *event );
00024     void setJournal(Journal*  );
00025 
00026   protected:
00027     void addLink( const QString &ref, const QString &text,
00028                   bool newline = true );
00029     int mColorMode;
00030     void addTag(const QString & tag,const QString & text);
00031 
00032     void formatCategories(Incidence *event);
00033     void formatAttendees(Incidence *event);
00034     void formatReadOnly(Incidence *event);
00035 
00036   private:
00037     bool mSyncMode;
00038 
00039     QString mText;
00040     Incidence* mCurrentIncidence; 
00041     static KIncidenceFormatter* mInstance; 
00042 };
00043 
00044 #endif
KDE Logo
This file is part of the documentation for libkdepim Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu May 3 20:20:05 2007 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003