# kdecore Library API Documentation

Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Namespaces | Source Files

# kinstance.h

    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., 59 Temple Place - Suite 330,
    00016    Boston, MA 02111-1307, 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

This file is part of the documentation for kdecore Library Version 3.4.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat Jun 11 20:18:06 2005 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003