• 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 
24 class TDEStandardDirs;
25 class TDEAboutData;
26 class TDEConfig;
27 class TDEIconLoader;
28 class KCharsets;
29 class TQFont;
30 class TDEInstancePrivate;
31 class KMimeSourceFactory;
32 class TDESharedConfig;
33 #ifdef __TDE_HAVE_TDEHWLIB
34 class TDEHardwareDevices;
35 class TDEGlobalNetworkManager;
36 #endif
37 
38 
47 class 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
116 
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 
156 protected:
160  TDEInstance( const TDEInstance& );
161 
167  void setConfigName(const TQString &name);
168 
169 private:
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 
184 protected:
185  virtual void virtual_hook( int id, void* data );
186 private:
187  TDEInstancePrivate *d;
188  bool m_configReadOnly;
189 };
190 
191 #endif
192 
TDEConfig
Access KDE Configuration entries.
Definition: tdeconfig.h:43
KCharsets
Charset font and encoder/decoder handling.
Definition: kcharsets.h:43
TDEAboutData
This class is used to store information about a program.
Definition: tdeaboutdata.h:182
TDEStandardDirs
Site-independent access to standard KDE directories.
Definition: kstandarddirs.h:125
TDEIconLoader
Iconloader for KDE.
Definition: kiconloader.h:77
TDESharedConfig
TDEConfig variant using shared memory.
Definition: tdeconfig.h:273
KMimeSourceFactory
An extension to TQMimeSourceFactory that uses TDEIconLoader to find images.
Definition: kmimesourcefactory.h:40
TDEInstance
Access to KDE global objects for use in shared libraries.
Definition: kinstance.h:47

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
  •     tdecore
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  • tdeioslave
  •   http
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdecore by doxygen 1.8.8
This website is maintained by Timothy Pearson.