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

knotes

resourcemanager.h

Go to the documentation of this file.
00001 /*******************************************************************
00002  This file is part of KNotes.
00003 
00004  Copyright (c) 2004, Bo Thorsen <bo@sonofthor.dk>
00005                2004, Michael Brade <brade@kde.org>
00006 
00007  This program is free software; you can redistribute it and/or modify
00008  it under the terms of the GNU General Public License as published by
00009  the Free Software Foundation; either version 2 of the License, or
00010  (at your option) any later version.
00011 
00012  This program is distributed in the hope that it will be useful,
00013  but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00015  GNU General Public License for more details.
00016 
00017  You should have received a copy of the GNU General Public License
00018  along with this program; if not, write to the Free Software
00019  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
00020  MA  02110-1301, USA.
00021 
00022  In addition, as a special exception, the copyright holders give
00023  permission to link the code of this program with any edition of
00024  the Qt library by Trolltech AS, Norway (or with modified versions
00025  of Qt that use the same license as Qt), and distribute linked
00026  combinations including the two.  You must obey the GNU General
00027  Public License in all respects for all of the code used other than
00028  Qt.  If you modify this file, you may extend this exception to
00029  your version of the file, but you are not obligated to do so.  If
00030  you do not wish to do so, delete this exception statement from
00031  your version.
00032 *******************************************************************/
00033 
00034 #ifndef KNOTES_RESOURCEMANAGER_H
00035 #define KNOTES_RESOURCEMANAGER_H
00036 
00037 #include <Q3Dict>
00038 
00039 #include <kcal/alarm.h>
00040 #include <knotes/resourcenotes.h>
00041 #include <kresources/manager.h>
00042 
00043 class KNote;
00044 
00045 namespace KCal {
00046 class Journal;
00047 }
00048 
00049 
00050 class KNotesResourceManager
00051   : public QObject, public KRES::ManagerObserver<ResourceNotes>
00052 {
00053   Q_OBJECT
00054   public:
00055     KNotesResourceManager();
00056     virtual ~KNotesResourceManager();
00057     
00058     void load();
00059     void save();
00060     
00061     void addNewNote( KCal::Journal *journal );
00062     void registerNote( ResourceNotes *resource, KCal::Journal *journal );
00063     
00064     void deleteNote( KCal::Journal *journal );
00065     
00066     KCal::Alarm::List alarms( const KDateTime &from, const KDateTime &to );
00067     
00068     // from the ManagerObserver interface
00069     virtual void resourceAdded( ResourceNotes *resource );
00070     virtual void resourceModified( ResourceNotes *resource );
00071     virtual void resourceDeleted( ResourceNotes *resource );
00072     
00073   signals:
00074     void sigRegisteredNote( KCal::Journal *journal );
00075     void sigDeregisteredNote( KCal::Journal *journal );
00076     
00077   private:
00078     KRES::Manager<ResourceNotes> *m_manager;
00079     Q3Dict<ResourceNotes> m_resourceMap;
00080 };
00081 
00082 
00083 #endif // RESOURCEMANAGER_H

knotes

Skip menu "knotes"
  • 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
  •   doc
  • 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