• Skip to content
  • Skip to link menu
KDE 4.7 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • KDE Home
  • Contact Us
 

KCalCore Library

filestorage.h
Go to the documentation of this file.
00001 /*
00002   This file is part of the kcalcore library.
00003 
00004   Copyright (c) 2002,2003 Cornelius Schumacher <schumacher@kde.org>
00005 
00006   This library is free software; you can redistribute it and/or
00007   modify it under the terms of the GNU Library General Public
00008   License as published by the Free Software Foundation; either
00009   version 2 of the License, or (at your option) any later version.
00010 
00011   This library is distributed in the hope that it will be useful,
00012   but WITHOUT ANY WARRANTY; without even the implied warranty of
00013   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014   Library General Public License for more details.
00015 
00016   You should have received a copy of the GNU Library General Public License
00017   along with this library; see the file COPYING.LIB.  If not, write to
00018   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019   Boston, MA 02110-1301, USA.
00020 */
00029 #ifndef KCALCORE_FILESTORAGE_H
00030 #define KCALCORE_FILESTORAGE_H
00031 
00032 #include "kcalcore_export.h"
00033 #include "calstorage.h"
00034 
00035 namespace KCalCore {
00036 
00037 class CalFormat;
00038 class Calendar;
00039 
00044 class KCALCORE_EXPORT FileStorage : public CalStorage
00045 {
00046   public:
00047 
00051     typedef QSharedPointer<FileStorage> Ptr;
00052 
00064     explicit FileStorage( const Calendar::Ptr &calendar,
00065                           const QString &fileName = QString(),
00066                           KCalCore::CalFormat *format = 0 );
00067 
00071     virtual ~FileStorage();
00072 
00079     void setFileName( const QString &fileName );
00080 
00085     QString fileName() const;
00086 
00094     void setSaveFormat( KCalCore::CalFormat *format );
00095 
00100     CalFormat *saveFormat() const;
00101 
00106     bool open();
00107 
00112     bool load();
00113 
00118     bool save();
00119 
00124     bool close();
00125 
00126   private:
00127     //@cond PRIVATE
00128     Q_DISABLE_COPY( FileStorage )
00129     class Private;
00130     Private *const d;
00131     //@endcond
00132 };
00133 
00134 }
00135 
00136 #endif

KCalCore Library

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

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • 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
Generated for KDE-PIM Libraries by doxygen 1.7.5
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