Skip to content
Skip to link menu
Trinity API Reference
Trinity API Reference
kdecore
kdecore
kdecore
kinstance.h
1
/* This file is part of the KDE libraries
2
Copyright (C) 1999 Torben Weis <weis@kde.org>
3
4
This library is free software; you can redistribute it and/or
5
modify it under the terms of the GNU Library General Public
6
License version 2 as published by the Free Software Foundation.
7
8
This library is distributed in the hope that it will be useful,
9
but WITHOUT ANY WARRANTY; without even the implied warranty of
10
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
Library General Public License for more details.
12
13
You should have received a copy of the GNU Library General Public License
14
along with this library; see the file COPYING.LIB. If not, write to
15
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16
Boston, MA 02110-1301, USA.
17
*/
18
#ifndef _KINSTANCE_H
19
#define _KINSTANCE_H
20
21
class
KStandardDirs
;
22
class
KAboutData
;
23
class
KConfig
;
24
class
KIconLoader
;
25
class
KCharsets
;
26
class
TQFont;
27
class
KInstancePrivate;
28
class
KMimeSourceFactory
;
29
class
KSharedConfig
;
30
31
#include <tqstring.h>
32
#include "kdelibs_export.h"
33
34
43
class
KDECORE_EXPORT
KInstance
44
{
45
friend
class
KStandardDirs
;
46
47
public
:
52
KInstance
(
const
TQCString& instanceName) ;
53
64
KInstance
(
const
KAboutData
* aboutData );
65
66
/*
67
* @internal
68
* Only for K(Unique)Application
69
* Initialize from src and delete it.
70
*/
71
72
KInstance
(
KInstance
* src );
73
77
virtual
~
KInstance
();
78
83
KStandardDirs
*dirs()
const
;
84
89
KConfig
*config()
const
;
90
95
KSharedConfig
*sharedConfig()
const
;
96
101
KIconLoader
*iconLoader()
const
;
102
106
void
newIconLoader()
const
;
107
114
const
KAboutData
*aboutData()
const
;
115
121
TQCString instanceName()
const
;
122
128
KMimeSourceFactory
* mimeSourceFactory ()
const
;
129
130
protected
:
134
KInstance
(
const
KInstance
& );
135
141
void
setConfigName(
const
TQString &name);
142
143
private
:
144
mutable
KStandardDirs
*_dirs;
145
146
mutable
KConfig
*_config;
147
mutable
KIconLoader
*_iconLoader;
148
149
TQCString _name;
150
const
KAboutData
*_aboutData;
151
152
protected
:
153
virtual
void
virtual_hook(
int
id
,
void
* data );
154
private
:
155
KInstancePrivate *d;
156
};
157
158
#endif
159
kdecore
Skip menu "kdecore"
Main Page
Modules
Namespace List
Class Hierarchy
Alphabetical List
Class List
File List
Namespace Members
Class Members
Related Pages
kdecore
Skip menu "kdecore"
arts
dcop
dnssd
interfaces
interface
library
kspeech
ktexteditor
kabc
kate
kcmshell
kdecore
kded
kdefx
kdeprint
kdesu
kdeui
kdoctools
khtml
kimgio
kinit
kio
bookmarks
httpfilter
kfile
kio
kioexec
kpasswdserver
kssl
kioslave
http
kjs
kmdi
kmdi
knewstuff
kparts
krandr
kresources
kspell2
kunittest
kutils
kwallet
libkmid
libkscreensaver