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

akonadi

noteutils.h
00001 /*  This file is part of the KDE project
00002     Copyright (C) 2011 Christian Mollekopf <chrigi_1@fastmail.fm>
00003 
00004     This library is free software; you can redistribute it and/or
00005     modify it under the terms of the GNU Library General Public
00006     License as published by the Free Software Foundation; either
00007     version 2 of the License, or (at your option) any later version.
00008 
00009     This library is distributed in the hope that it will be useful,
00010     but WITHOUT ANY WARRANTY; without even the implied warranty of
00011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012     Library General Public License for more details.
00013 
00014     You should have received a copy of the GNU Library General Public License
00015     along with this library; see the file COPYING.LIB.  If not, write to
00016     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017     Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef NOTEUTILS_H
00021 #define NOTEUTILS_H
00022 
00023 #include "akonadi-notes_export.h"
00024 #include <QtGui/QTextEdit>
00025 
00026 class KDateTime;
00027 class QString;
00028 
00029 namespace boost {
00030   template <typename T> class shared_ptr;
00031 }
00032 
00033 namespace KMime {
00034   class Message;
00035   typedef boost::shared_ptr<Message> MessagePtr;
00036 }
00037 namespace Akonadi {
00038 namespace NoteUtils {
00039 
00044 AKONADI_NOTES_EXPORT QString noteMimeType();
00045 
00050 AKONADI_NOTES_EXPORT QString noteIconName();
00051 
00079 class AKONADI_NOTES_EXPORT NoteMessageWrapper
00080 {
00081 public:
00082   NoteMessageWrapper();
00083   explicit NoteMessageWrapper( const KMime::MessagePtr & );
00084   ~NoteMessageWrapper();
00085 
00089   void setTitle( const QString &title );
00090 
00094   QString title() const;
00095 
00101   void setText( const QString &text, Qt::TextFormat format = Qt::PlainText );
00102 
00106   QString text() const;
00107 
00111   Qt::TextFormat textFormat() const;
00112 
00116   QString toPlainText() const;
00117 
00121   void setCreationDate( const KDateTime &creationDate );
00122 
00126   KDateTime creationDate() const;
00127 
00132   void setFrom( const QString &from );
00133 
00137   QString from() const;
00138 
00144   KMime::MessagePtr message() const;
00145 
00146 private:
00147   //@cond PRIVATE
00148   class NoteMessageWrapperPrivate;
00149   NoteMessageWrapperPrivate * const d_ptr;
00150   Q_DECLARE_PRIVATE( NoteMessageWrapper )
00151   //@endcond
00152 };
00153 
00154 }
00155 }
00156 
00157 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Thu Aug 2 2012 15:25:19 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akonadi

Skip menu "akonadi"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Modules
  • Related Pages

kdepimlibs-4.8.5 API Reference

Skip menu "kdepimlibs-4.8.5 API Reference"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kalarmcal
  • 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
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