• 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 class TDEStandardDirs;
22 class TDEAboutData;
23 class TDEConfig;
24 class TDEIconLoader;
25 class KCharsets;
26 class TQFont;
27 class TDEInstancePrivate;
28 class KMimeSourceFactory;
29 class TDESharedConfig;
30 class TDEHardwareDevices;
31 class TDEGlobalNetworkManager;
32 
33 #include <tqstring.h>
34 #include "tdelibs_export.h"
35 
36 
45 class TDECORE_EXPORT TDEInstance
46 {
47  friend class TDEStandardDirs;
48 
49  public:
54  TDEInstance( const TQCString& instanceName) ;
55 
66  TDEInstance( const TDEAboutData * aboutData );
67 
68  /*
69  * @internal
70  * Only for K(Unique)Application
71  * Initialize from src and delete it.
72  */
73 
74  TDEInstance( TDEInstance* src );
75 
79  virtual ~TDEInstance();
80 
85  TDEStandardDirs *dirs() const;
86 
91  TDEConfig *config() const;
92 
97  TDESharedConfig *sharedConfig() const;
98 
105  void setConfigReadOnly(bool ro);
106 
111  TDEIconLoader *iconLoader() const;
112 
117  TDEHardwareDevices *hardwareDevices() const;
118 
123  TDEGlobalNetworkManager *networkManager() const;
124 
128  void newIconLoader() const;
129 
136  const TDEAboutData *aboutData() const;
137 
143  TQCString instanceName() const;
144 
150  KMimeSourceFactory* mimeSourceFactory () const;
151 
152 protected:
156  TDEInstance( const TDEInstance& );
157 
163  void setConfigName(const TQString &name);
164 
165 private:
166  mutable TDEStandardDirs *_dirs;
167 
168  mutable TDEConfig *_config;
169  mutable TDEIconLoader *_iconLoader;
170 
171  mutable TDEHardwareDevices *_hardwaredevices;
172  mutable TDEGlobalNetworkManager *_networkmanager;
173  mutable void *_placeholder;
174 
175  TQCString _name;
176  const TDEAboutData *_aboutData;
177 
178 protected:
179  virtual void virtual_hook( int id, void* data );
180 private:
181  TDEInstancePrivate *d;
182  bool m_configReadOnly;
183 };
184 
185 #endif
186 

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