• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

akonadi/kcal

kcalitembrowser.cpp

Go to the documentation of this file.
00001 /*
00002     Copyright (c) 2008 Bruno Virlet <bvirlet@kdemail.net>
00003 
00004     This library is free software; you can redistribute it and/or modify it
00005     under the terms of the GNU Library General Public License as published by
00006     the Free Software Foundation; either version 2 of the License, or (at your
00007     option) any later version.
00008 
00009     This library is distributed in the hope that it will be useful, but WITHOUT
00010     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00011     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00012     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 the
00016     Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00017     02110-1301, USA.
00018 */
00019 
00020 #include "kcalitembrowser.h"
00021 
00022 #include <akonadi/item.h>
00023 #include <akonadi/itemfetchscope.h>
00024 
00025 #include <kcal/incidence.h>
00026 #include <kcal/incidenceformatter.h>
00027 
00028 #include <boost/shared_ptr.hpp>
00029 typedef boost::shared_ptr<KCal::Incidence> IncidencePtr;
00030 
00031 using namespace Akonadi;
00032 
00033 KCalItemBrowser::KCalItemBrowser( QWidget* parent )
00034     : ItemBrowser( parent ), d( 0 )
00035 {
00036   fetchScope().fetchFullPayload();
00037 }
00038 
00039 KCalItemBrowser::~KCalItemBrowser()
00040 {
00041 }
00042 
00043 QString KCalItemBrowser::itemToRichText( const Item& item )
00044 {
00045     if ( !item.hasPayload<IncidencePtr>() ) {
00046         return QString();
00047     }
00048 
00049     IncidencePtr incidence = item.payload<IncidencePtr>();
00050     return KCal::IncidenceFormatter::extensiveDisplayString( incidence.get() );
00051 }
00052 

akonadi/kcal

Skip menu "akonadi/kcal"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
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