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

KDECore

kinstance.h

Go to the documentation of this file.
00001 /* This file is part of the KDE libraries
00002    Copyright (C) 1999 Torben Weis <weis@kde.org>
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 version 2 as published by the Free Software Foundation.
00007 
00008    This library is distributed in the hope that it will be useful,
00009    but WITHOUT ANY WARRANTY; without even the implied warranty of
00010    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011    Library General Public License for more details.
00012 
00013    You should have received a copy of the GNU Library General Public License
00014    along with this library; see the file COPYING.LIB.  If not, write to
00015    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00016    Boston, MA 02110-1301, USA.
00017 */
00018 #ifndef _KINSTANCE_H
00019 #define _KINSTANCE_H
00020 
00021 class KStandardDirs;
00022 class KAboutData;
00023 class KConfig;
00024 class KIconLoader;
00025 class KCharsets;
00026 class QFont;
00027 class KInstancePrivate;
00028 class KMimeSourceFactory;
00029 class KSharedConfig;
00030 
00031 #include <qstring.h>
00032 #include "kdelibs_export.h"
00033 
00034 
00043 class KDECORE_EXPORT KInstance
00044 {
00045     friend class KStandardDirs;
00046 
00047  public:
00052     KInstance( const QCString& instanceName) ;
00053 
00064     KInstance( const KAboutData * aboutData );
00065 
00066     /*
00067      * @internal
00068      * Only for K(Unique)Application
00069      * Initialize from src and delete it.
00070      */
00071      
00072     KInstance( KInstance* src );
00073 
00077     virtual ~KInstance();
00078 
00083     KStandardDirs   *dirs() const;
00084 
00089     KConfig            *config() const;
00090 
00095     KSharedConfig      *sharedConfig() const;
00096 
00101     KIconLoader        *iconLoader() const;
00102 
00106     void newIconLoader() const;
00107 
00114     const KAboutData *aboutData() const;
00115 
00121     QCString          instanceName() const;
00122 
00128     KMimeSourceFactory* mimeSourceFactory () const;
00129 
00130 protected:
00134     KInstance( const KInstance& );
00135 
00141     void setConfigName(const QString &name);
00142 
00143 private:
00144     mutable KStandardDirs       *_dirs;
00145 
00146     mutable KConfig             *_config;
00147     mutable KIconLoader         *_iconLoader;
00148 
00149     QCString                     _name;
00150     const KAboutData            *_aboutData;
00151 
00152 protected:
00153     virtual void virtual_hook( int id, void* data );
00154 private:
00155     KInstancePrivate *d;
00156 };
00157 
00158 #endif
00159 

KDECore

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

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
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