kinstance.h
/* This file is part of the KDE libraries
Copyright (C) 1999 Torben Weis <weis@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2 as published by the Free Software Foundation.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef _KINSTANCE_H
#define _KINSTANCE_H
class KStandardDirs;
class KAboutData;
class KConfig;
class KIconLoader;
class KCharsets;
class QFont;
class KInstancePrivate;
class KMimeSourceFactory;
class KSharedConfig;
#include <qstring.h>
#include "kdelibs_export.h"
class KDECORE_EXPORT KInstance
{
friend class KStandardDirs;
public:
KInstance( const QCString& instanceName) ;
KInstance( const KAboutData * aboutData );
/*
* @internal
* Only for K(Unique)Application
* Initialize from src and delete it.
*/
KInstance( KInstance* src );
virtual ~KInstance();
KStandardDirs *dirs() const;
KConfig *config() const;
KSharedConfig *sharedConfig() const;
KIconLoader *iconLoader() const;
void newIconLoader() const;
const KAboutData *aboutData() const;
QCString instanceName() const;
KMimeSourceFactory* mimeSourceFactory () const;
protected:
KInstance( const KInstance& );
void setConfigName(const QString &name);
private:
mutable KStandardDirs *_dirs;
mutable KConfig *_config;
mutable KIconLoader *_iconLoader;
QCString _name;
const KAboutData *_aboutData;
protected:
virtual void virtual_hook( int id, void* data );
private:
KInstancePrivate *d;
};
#endif
KSharedConfig
KConfig variant using shared memory.
Definition: kconfig.h:273
KCharsets
Charset font and encoder/decoder handling.
Definition: kcharsets.h:43
KStandardDirs
Site-independent access to standard KDE directories.
Definition: kstandarddirs.h:125
KInstance
Access to KDE global objects for use in shared libraries.
Definition: kinstance.h:43
KAboutData
This class is used to store information about a program.
Definition: kaboutdata.h:182
KConfig
Access KDE Configuration entries.
Definition: kconfig.h:43
KMimeSourceFactory
An extension to QMimeSourceFactory that uses KIconLoader to find images.
Definition: kmimesourcefactory.h:40
KIconLoader
Iconloader for KDE.
Definition: kiconloader.h:77

KDE Home | KDE Accessibility Home | Description of Access Keys