• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdecore
 

tdecore

  • tdecore
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#include <tqstring.h>
22#include "tdelibs_export.h"
23
24class TDEStandardDirs;
25class TDEAboutData;
26class TDEConfig;
27class TDEIconLoader;
28class KCharsets;
29class TQFont;
30class TDEInstancePrivate;
31class KMimeSourceFactory;
32class TDESharedConfig;
33#ifdef __TDE_HAVE_TDEHWLIB
34class TDEHardwareDevices;
35class TDEGlobalNetworkManager;
36#endif
37
38
47class TDECORE_EXPORT TDEInstance
48{
49 friend class TDEStandardDirs;
50
51 public:
56 TDEInstance( const TQCString& instanceName) ;
57
68 TDEInstance( const TDEAboutData * aboutData );
69
70 /*
71 * @internal
72 * Only for K(Unique)Application
73 * Initialize from src and delete it.
74 */
75
76 TDEInstance( TDEInstance* src );
77
81 virtual ~TDEInstance();
82
87 TDEStandardDirs *dirs() const;
88
93 TDEConfig *config() const;
94
99 TDESharedConfig *sharedConfig() const;
100
107 void setConfigReadOnly(bool ro);
108
113 TDEIconLoader *iconLoader() const;
114
115#ifdef __TDE_HAVE_TDEHWLIB
120 TDEHardwareDevices *hardwareDevices() const;
121
126 TDEGlobalNetworkManager *networkManager() const;
127#endif
128
132 void newIconLoader() const;
133
140 const TDEAboutData *aboutData() const;
141
147 TQCString instanceName() const;
148
154 KMimeSourceFactory* mimeSourceFactory () const;
155
156protected:
160 TDEInstance( const TDEInstance& );
161
167 void setConfigName(const TQString &name);
168
169private:
170 mutable TDEStandardDirs *_dirs;
171
172 mutable TDEConfig *_config;
173 mutable TDEIconLoader *_iconLoader;
174
175#ifdef __TDE_HAVE_TDEHWLIB
176 mutable TDEHardwareDevices *_hardwaredevices;
177 mutable TDEGlobalNetworkManager *_networkmanager;
178#endif
179 mutable void *_placeholder;
180
181 TQCString _name;
182 const TDEAboutData *_aboutData;
183
184protected:
185 virtual void virtual_hook( int id, void* data );
186private:
187 TDEInstancePrivate *d;
188 bool m_configReadOnly;
189};
190
191#endif
192
KCharsets
Charset font and encoder/decoder handling.
Definition: kcharsets.h:44
KMimeSourceFactory
An extension to TQMimeSourceFactory that uses TDEIconLoader to find images.
Definition: kmimesourcefactory.h:41
TDEAboutData
This class is used to store information about a program.
Definition: tdeaboutdata.h:183
TDEConfig
Access KDE Configuration entries.
Definition: tdeconfig.h:44
TDEIconLoader
Iconloader for KDE.
Definition: kiconloader.h:78
TDEInstance
Access to KDE global objects for use in shared libraries.
Definition: kinstance.h:48
TDEInstance::TDEInstance
TDEInstance(const TDEInstance &)
Copy Constructor is not allowed.
TDESharedConfig
TDEConfig variant using shared memory.
Definition: tdeconfig.h:274
TDEStandardDirs
Site-independent access to standard TDE directories.
Definition: tdestandarddirs.h:126

tdecore

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

tdecore

Skip menu "tdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdecore by doxygen 1.9.4
This website is maintained by Timothy Pearson.