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

console/kabcclient

csvtemplatefactory.h

Go to the documentation of this file.
00001 //
00002 //  Copyright (C) 2005 - 2006 Kevin Krammer <kevin.krammer@gmx.at>
00003 //
00004 //  This program is free software; you can redistribute it and/or modify
00005 //  it under the terms of the GNU General Public License as published by
00006 //  the Free Software Foundation; either version 2 of the License, or
00007 //  (at your option) any later version.
00008 //
00009 //  This program 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
00012 //  GNU General Public License for more details.
00013 //
00014 //  You should have received a copy of the GNU General Public License
00015 //  along with this program; if not, write to the Free Software
00016 //  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00017 //
00018 
00019 #ifndef CSVTEMPLATEFACTORY_H
00020 #define CSVTEMPLATEFACTORY_H
00021 
00022 // Qt includes
00023 #include <QtCore/QMap>
00024 #include <QtCore/QStringList>
00025 
00026 // forward declarations
00027 class CSVTemplate;
00028 class KConfigBase;
00029 
00044 class CSVTemplateFactory
00045 {
00046 public:
00050     CSVTemplateFactory();
00051 
00057     ~CSVTemplateFactory();
00058 
00076     CSVTemplate* createTemplate(const QString& name);
00077 
00095     CSVTemplate* createCachedTemplate(const QString& name);
00096 
00115     QMap<QString, QString> templateNames();
00116 
00117 private:
00123     QMap<QString, QString> m_templateNames;
00124 
00129     QMap<QString, QString> m_templateFiles;
00130 
00136     QMap<QString, CSVTemplate*> m_templates;
00137 
00138 private:
00153     QString findTemplateFile(const QString& name) const;
00154 
00165     KConfigBase* loadTemplateConfig(const QString& filename) const;
00166 
00178     void addTemplateNames(const QString& directory);
00179 
00180 private:
00184     CSVTemplateFactory(const CSVTemplateFactory&);
00185 
00189     CSVTemplateFactory& operator=(const CSVTemplateFactory&);
00190 };
00191 
00192 #endif
00193 
00194 // End of file

console/kabcclient

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

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