Rename kinstance.{h,cpp} to tdeinstance.{h,cpp}.

A dummy kinstance.h has been temporarily added to keep other apps
building while the replacement is completed across all TDE code base.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
master
Michele Calgaro 1 week ago
parent 351e6ce3b2
commit cfe383b062
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -34,7 +34,7 @@
#include <tdelocale.h>
#include <kfinddialog.h>
#include <kreplacedialog.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <kstaticdeleter.h>
#include <tqpopupmenu.h>

@ -23,7 +23,7 @@
#include <tdeparts/factory.h>
#include <ktrader.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <tdeaboutdata.h>
// katepart version must be a string in double quotes, format: "x.x"
@ -224,7 +224,7 @@ class KateFactory
TDEAboutData m_aboutData;
/**
* our kinstance
* our TDEInstance
*/
TDEInstance m_instance;

@ -34,7 +34,7 @@
#include <tdeconfig.h>
#include <tdeglobal.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <kmimetype.h>
#include <tdelocale.h>
#include <kregexp.h>

@ -13,7 +13,7 @@
#include <libxslt/xsltutils.h>
#include <tqstring.h>
#include <tdestandarddirs.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <kdebug.h>
#include <stdlib.h>
#include "tdeio_help.h"

@ -13,7 +13,7 @@
#include <libxslt/xsltutils.h>
#include <tqstring.h>
#include <tdestandarddirs.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <kdebug.h>
#include <stdlib.h>
#include "tdeio_help.h"

@ -17,7 +17,7 @@
#include <libxslt/xsltutils.h>
#include <tqstring.h>
#include <tdestandarddirs.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <xslt.h>
#include <tqfile.h>
#include <tqdir.h>

@ -28,7 +28,7 @@
#include <tdeglobal.h>
#include <tdelocale.h>
#include <tdestandarddirs.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include "tdeio_help.h"
#include <libxslt/xsltutils.h>

@ -10,7 +10,7 @@
#include <tqdir.h>
#include <tqregexp.h>
#include <xslt.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include "tdeio_help.h"
#include <tdelocale.h>
#include <assert.h>

@ -66,7 +66,7 @@
#endif
#if 1
#include <kinstance.h>
#include <tdeinstance.h>
#include <tdeglobal.h>
#include <tdeconfig.h>
#endif

@ -25,7 +25,7 @@
#include <tdeapplication.h>
#include <kdebug.h>
#include <tdeglobal.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <tdelocale.h>
#include <tdestandarddirs.h>

@ -21,7 +21,7 @@
#include "tdecertpart.h"
#include <tdeparts/genericfactory.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <tdeaboutdata.h>
#include <tqframe.h>
#include <tdelocale.h>

@ -35,7 +35,7 @@
#include <tdeglobal.h>
#include <tdestandarddirs.h>
#include <tdeaboutdata.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <tdetempfile.h>
static TDECmdLineOptions options[] =

@ -59,7 +59,7 @@ install( FILES
tdeglobalaccel.h tdestdaccel.h tdeshortcutlist.h kcatalogue.h
kregexp.h kcompletion.h kstringhandler.h
tdestandarddirs.h tdeglobal.h tdeglobalsettings.h ksharedptr.h
kallocator.h kvmallocator.h tdecrash.h krfcdate.h kinstance.h
kallocator.h kvmallocator.h tdecrash.h krfcdate.h tdeinstance.h kinstance.h
kpalette.h kipc.h klibloader.h tdetempfile.h ksavefile.h
krandomsequence.h knotifyclient.h kiconeffect.h kaudioplayer.h
kdcoppropertyproxy.h netwm.h tdeaccelmanager.h netwm_def.h
@ -116,7 +116,7 @@ set( ${target}_SRCS
tdeglobalaccel_x11.cpp tdeglobalaccel.cpp tdestdaccel.cpp tdeshortcutlist.cpp
tdecrash.cpp kurl.cpp kregexp.cpp tdeglobal.cpp tdeglobalsettings.cpp
kallocator.cpp kvmallocator.cpp kmimesourcefactory.cpp
kinstance.cpp kpalette.cpp kipc.cpp klibloader.cpp tdetempfile.cpp
tdeinstance.cpp kpalette.cpp kipc.cpp klibloader.cpp tdetempfile.cpp
tdeuniqueapplication.cpp tdeaccelmanager.cpp ksavefile.cpp
krandomsequence.cpp kstringhandler.cpp kcompletion.cpp
tdecmdlineargs.cpp tdeaboutdata.cpp kcompletionbase.cpp knotifyclient.cpp

@ -6,10 +6,10 @@ When adding yourself as a maintainer, don't be afraid to reorder the files to a
more logical grouping.
dmalloc.cpp
tdeaboutdata.cpp David Faure <faure@kde.org>
tdeaboutdata.cpp David Faure <faure@kde.org>
tdeaccel.cpp Ellis Whitehead <ellis@kde.org>
tdeaccelaction.cpp Ellis Whitehead <ellis@kde.org>
tdeaccelbase.cpp Ellis Whitehead <ellis@kde.org>
tdeaccelbase.cpp Ellis Whitehead <ellis@kde.org>
kallocator.cpp Waldo Bastian <bastian@kde.org>
tdeappdcopinterface.cpp
tdeapplication.cpp Waldo Bastian <bastian@kde.org>
@ -22,7 +22,7 @@ kcompletion.cpp Carsten Pfeiffer <pfeiffer@kde.org>
kcompletionbase.cpp
tdeconfig.cpp Waldo Bastian <bastian@kde.org>
tdeconfigbackend.cpp Waldo Bastian <bastian@kde.org>
tdeconfigbase.cpp Waldo Bastian <bastian@kde.org>
tdeconfigbase.cpp Waldo Bastian <bastian@kde.org>
tdecrash.cpp Waldo Bastian <bastian@kde.org>
kdcoppropertyproxy.cpp
kdebug.cpp Stephan Kulow <coolo@kde.org>
@ -34,7 +34,7 @@ tdeglobalsettings.cpp David Faure <faure@kde.org>
kiconeffect.cpp
kiconloader.cpp
kicontheme.cpp
kinstance.cpp Stephan Kulow <coolo@kde.org>
tdeinstance.cpp Stephan Kulow <coolo@kde.org>
kipc.cpp Lubos Lunak <l.lunak@kde.org>
kkey_x11.cpp Ellis Whitehead <ellis@kde.org>
kkeynative_x11.cpp Ellis Whitehead <ellis@kde.org>
@ -65,7 +65,7 @@ kstaticdeleter.cpp Stephan Kulow <coolo@kde.org>
tdestdaccel.cpp Ellis Whitehead <ellis@kde.org>
kstringhandler.cpp
tdesycoca.cpp Waldo Bastian <bastian@kde.org>
tdesycocadict.cpp Waldo Bastian <bastian@kde.org>
tdesycocadict.cpp Waldo Bastian <bastian@kde.org>
tdesycocafactory.cpp Waldo Bastian <bastian@kde.org>
tdetempfile.cpp Waldo Bastian <bastian@kde.org>
tdeuniqueapplication.cpp Waldo Bastian <bastian@kde.org>

@ -47,7 +47,7 @@ include_HEADERS = tdeconfig.h tdeconfigskeleton.h \
kregexp.h kcompletion.h kstringhandler.h \
tdestandarddirs.h tdeglobal.h tdeglobalsettings.h ksharedptr.h \
kallocator.h kvmallocator.h tdecrash.h krfcdate.h \
kinstance.h kpalette.h kipc.h klibloader.h tdetempfile.h ksavefile.h \
tdeinstance.h kinstance.h kpalette.h kipc.h klibloader.h tdetempfile.h ksavefile.h \
krandomsequence.h knotifyclient.h kiconeffect.h \
kaudioplayer.h kdcoppropertyproxy.h netwm.h tdeaccelmanager.h \
netwm_def.h kpixmapprovider.h kunload.h kstaticdeleter.h \
@ -100,7 +100,7 @@ libtdecore_la_SOURCES = libintl.cpp tdeapplication.cpp \
tdeglobalaccel_x11.cpp tdeglobalaccel.cpp tdestdaccel.cpp tdeshortcutlist.cpp \
tdecrash.cpp kurl.cpp kregexp.cpp tdeglobal.cpp tdeglobalsettings.cpp \
kallocator.cpp kvmallocator.cpp kmimesourcefactory.cpp \
kinstance.cpp kpalette.cpp kipc.cpp klibloader.cpp tdetempfile.cpp \
tdeinstance.cpp kpalette.cpp kipc.cpp klibloader.cpp tdetempfile.cpp \
tdeuniqueapplication.cpp tdeaccelmanager.cpp \
ksavefile.cpp krandomsequence.cpp kstringhandler.cpp kcompletion.cpp \
tdecmdlineargs.cpp tdeaboutdata.cpp kcompletionbase.cpp knotifyclient.cpp \

@ -28,7 +28,7 @@
#include "tdeapplication.h"
#include "tdeglobal.h"
#include "kinstance.h"
#include "tdeinstance.h"
#include "tdestandarddirs.h"
#include <tqmessagebox.h>

@ -21,7 +21,7 @@
#include <klibloader.h>
#include <ktypelist.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <kgenericfactory.tcc>
#include <tdeglobal.h>
#include <tdelocale.h>

@ -33,7 +33,7 @@
#include <tdeglobal.h>
#include <tdeconfig.h>
#include <tdesimpleconfig.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <kicontheme.h>
#include <kiconloader.h>

@ -28,7 +28,7 @@
#endif
#include <tdeglobal.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <kicontheme.h>
struct TDEIconGroup;

@ -33,7 +33,7 @@
#include <tdeglobal.h>
#include <tdeconfig.h>
#include <tdesimpleconfig.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include "kicontheme.h"
@ -136,7 +136,7 @@ TDEIconTheme::TDEIconTheme(const TQString& name, const TQString& appName)
fileName = mDir + "index.theme";
mainSection="Icon Theme";
}
// Use TDESharedConfig to avoid parsing the file many times, from each kinstance.
// Use TDESharedConfig to avoid parsing the file many times, from each TDEInstance.
// Need to keep a ref to it to make this useful
d->sharedConfig = TDESharedConfig::openConfig( fileName, true /*readonly*/, false /*useKDEGlobals*/ );
TDEConfig& cfg = *d->sharedConfig;

@ -1,192 +1 @@
/* 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
#include <tqstring.h>
#include "tdelibs_export.h"
class TDEStandardDirs;
class TDEAboutData;
class TDEConfig;
class TDEIconLoader;
class KCharsets;
class TQFont;
class TDEInstancePrivate;
class KMimeSourceFactory;
class TDESharedConfig;
#ifdef __TDE_HAVE_TDEHWLIB
class TDEHardwareDevices;
class TDEGlobalNetworkManager;
#endif
/**
* Access to KDE global objects for use in shared libraries. In
* practical terms, this class is used in KDE components. This allows
* components to store things that normally would be accessed by
* TDEGlobal.
*
* @author Torben Weis
*/
class TDECORE_EXPORT TDEInstance
{
friend class TDEStandardDirs;
public:
/**
* Constructor.
* @param instanceName the name of the instance
*/
TDEInstance( const TQCString& instanceName) ;
/**
* Constructor.
* When building a TDEInstance that is not your TDEApplication,
* make sure that the TDEAboutData and the TDEInstance have the same life time.
* You have to destroy both, since the instance doesn't own the about data.
* Don't build a TDEAboutData on the stack in this case !
* Building a TDEAboutData on the stack is only ok for usage with
* TDECmdLineArgs and TDEApplication (not destroyed until the app exits).
* @param aboutData data about this instance (see TDEAboutData)
*/
TDEInstance( const TDEAboutData * aboutData );
/*
* @internal
* Only for K(Unique)Application
* Initialize from src and delete it.
*/
TDEInstance( TDEInstance* src );
/**
* Destructor.
*/
virtual ~TDEInstance();
/**
* Returns the application standard dirs object.
* @return The TDEStandardDirs of the application.
*/
TDEStandardDirs *dirs() const;
/**
* Returns the general config object ("appnamerc").
* @return the TDEConfig object for the instance.
*/
TDEConfig *config() const;
/**
* Returns the general config object ("appnamerc").
* @return the TDEConfig object for the instance.
*/
TDESharedConfig *sharedConfig() const;
/**
* Set a read-only flag on the configuration files
* This must be called before config() or dirs() to have any effect
* Defaults to false
* @param ro read only if true
*/
void setConfigReadOnly(bool ro);
/**
* Returns an iconloader object.
* @return the iconloader object.
*/
TDEIconLoader *iconLoader() const;
#ifdef __TDE_HAVE_TDEHWLIB
/**
* Returns a TDEHardwareDevices object.
* @return the hardwaredevices object.
*/
TDEHardwareDevices *hardwareDevices() const;
/**
* Returns a TDEGlobalNetworkManager object.
* @return the networkmanager object.
*/
TDEGlobalNetworkManager *networkManager() const;
#endif
/**
* Re-allocate the global iconloader.
*/
void newIconLoader() const;
/**
* Returns the about data of this instance
* Warning, can be 0L
* @return the about data of the instance, or 0 if it has
* not been set yet
*/
const TDEAboutData *aboutData() const;
/**
* Returns the name of the instance
* @return the instance name, can be null if the TDEInstance has been
* created with a null name
*/
TQCString instanceName() const;
/**
* Returns the KMimeSourceFactory of the instance.
* Mainly added for API completeness and future extensibility.
* @return the KMimeSourceFactory set as default for this application.
*/
KMimeSourceFactory* mimeSourceFactory () const;
protected:
/**
* Copy Constructor is not allowed
*/
TDEInstance( const TDEInstance& );
/**
* Set name of default config file.
* @param name the name of the default config file
* @since 3.1
*/
void setConfigName(const TQString &name);
private:
mutable TDEStandardDirs *_dirs;
mutable TDEConfig *_config;
mutable TDEIconLoader *_iconLoader;
#ifdef __TDE_HAVE_TDEHWLIB
mutable TDEHardwareDevices *_hardwaredevices;
mutable TDEGlobalNetworkManager *_networkmanager;
#endif
mutable void *_placeholder;
TQCString _name;
const TDEAboutData *_aboutData;
protected:
virtual void virtual_hook( int id, void* data );
private:
TDEInstancePrivate *d;
bool m_configReadOnly;
};
#endif
#include <tdeinstance.h>

@ -20,7 +20,7 @@
#include <kdebug.h>
#include <tdeglobal.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <kiconloader.h>
#include "kmimesourcefactory.h"

@ -49,7 +49,7 @@
#include "tdeglobal.h"
#include "tdeapplication.h"
#include "kinstance.h"
#include "tdeinstance.h"
#include "ktempdir.h"
#include "tdestandarddirs.h"
#include "tdeprocess.h"

@ -1,6 +1,6 @@
#include <tdecmdlineargs.h>
#include <tdelocale.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <tdestandarddirs.h>
#include <tdeglobal.h>
#include <tdeglobalsettings.h>

@ -1,6 +1,6 @@
#include <tdecmdlineargs.h>
#include <tdelocale.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <tdestandarddirs.h>
#include <tdeglobal.h>
#include <tdeglobalsettings.h>

@ -37,7 +37,7 @@ typedef void Display;
#include <tqapplication.h>
#include <tqpixmap.h>
#include <kinstance.h>
#include <tdeinstance.h>
struct _IceConn;
class TQPopupMenu;

@ -19,7 +19,7 @@ AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include "test1.h"
#include "kinstance.h"
#include "tdeinstance.h"
int main( int, char*[] )
{

@ -19,7 +19,7 @@ AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include "test2.h"
#include "kinstance.h"
#include "tdeinstance.h"
int main( int, char*[] )
{

@ -19,7 +19,7 @@ AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include "test3.h"
#include "kinstance.h"
#include "tdeinstance.h"
int main( int, char*[] )
{

@ -20,7 +20,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include "test4.h"
#include "kinstance.h"
#include "tdeinstance.h"
int main( int, char*[] )
{

@ -20,7 +20,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include "test5.h"
#include "kinstance.h"
#include "tdeinstance.h"
int main( int, char*[] )
{

@ -20,7 +20,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include "test6.h"
#include "kinstance.h"
#include "tdeinstance.h"
int main( int, char*[] )
{

@ -20,7 +20,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include "test7.h"
#include "kinstance.h"
#include "tdeinstance.h"
int main( int, char*[] )
{

@ -21,7 +21,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "test8a.h"
#include "test8b.h"
#include "kinstance.h"
#include "tdeinstance.h"
int main( int, char*[] )
{

@ -19,7 +19,7 @@ AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include "test9.h"
#include "kinstance.h"
#include "tdeinstance.h"
#include <kdebug.h>
#include <tqdir.h>

@ -20,7 +20,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include "test_dpointer.h"
#include "kinstance.h"
#include "tdeinstance.h"
int main( int, char*[] )
{

@ -45,7 +45,7 @@
#include <tqwindowdefs.h>
#include <tdeglobal.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <tdeaboutdata.h>
#include <kdebug.h>
#include <tdeapplication.h>

@ -39,7 +39,7 @@
#include <tdenetworkconnections.h>
#endif
#include <tdestandarddirs.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include "kstaticdeleter.h"
#include <tqfont.h>

@ -19,7 +19,7 @@
#define _TDEGLOBAL_H
#include "tdelibs_export.h"
#include <kinstance.h> // KDE4: class TDEInstance is enough here
#include <tdeinstance.h> // KDE4: class TDEInstance is enough here
class KCharsets;
class TDEConfig;

@ -15,7 +15,7 @@
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include "kinstance.h"
#include "tdeinstance.h"
#include <stdlib.h>
#include <unistd.h>
@ -46,7 +46,7 @@
static TQPtrDict<TQCString> *allOldInstances = 0;
#define DEBUG_ADD do { if (!allInstances) { allInstances = new TQPtrList<TDEInstance>(); allOldInstances = new TQPtrDict<TQCString>(); } allInstances->append(this); allOldInstances->insert( this, new TQCString( _name)); } while (false);
#define DEBUG_REMOVE do { allInstances->removeRef(this); } while (false);
#define DEBUG_CHECK_ALIVE do { if (!allInstances->contains((TDEInstance*)this)) { TQCString *old = allOldInstances->find((TDEInstance*)this); tqWarning("ACCESSING DELETED KINSTANCE! (%s)", old ? old->data() : "<unknown>"); assert(false); } } while (false);
#define DEBUG_CHECK_ALIVE do { if (!allInstances->contains((TDEInstance*)this)) { TQCString *old = allOldInstances->find((TDEInstance*)this); tqWarning("ACCESSING DELETED TDEINSTANCE! (%s)", old ? old->data() : "<unknown>"); assert(false); } } while (false);
#else
#define DEBUG_ADD
#define DEBUG_REMOVE

@ -0,0 +1,192 @@
/* This file is part of the TDE 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 _TDEINSTANCE_H
#define _TDEINSTANCE_H
#include <tqstring.h>
#include "tdelibs_export.h"
class TDEStandardDirs;
class TDEAboutData;
class TDEConfig;
class TDEIconLoader;
class KCharsets;
class TQFont;
class TDEInstancePrivate;
class KMimeSourceFactory;
class TDESharedConfig;
#ifdef __TDE_HAVE_TDEHWLIB
class TDEHardwareDevices;
class TDEGlobalNetworkManager;
#endif
/**
* Access to TDE global objects for use in shared libraries. In
* practical terms, this class is used in TDE components. This allows
* components to store things that normally would be accessed by
* TDEGlobal.
*
* @author Torben Weis
*/
class TDECORE_EXPORT TDEInstance
{
friend class TDEStandardDirs;
public:
/**
* Constructor.
* @param instanceName the name of the instance
*/
TDEInstance( const TQCString& instanceName) ;
/**
* Constructor.
* When building a TDEInstance that is not your TDEApplication,
* make sure that the TDEAboutData and the TDEInstance have the same life time.
* You have to destroy both, since the instance doesn't own the about data.
* Don't build a TDEAboutData on the stack in this case !
* Building a TDEAboutData on the stack is only ok for usage with
* TDECmdLineArgs and TDEApplication (not destroyed until the app exits).
* @param aboutData data about this instance (see TDEAboutData)
*/
TDEInstance( const TDEAboutData * aboutData );
/*
* @internal
* Only for K(Unique)Application
* Initialize from src and delete it.
*/
TDEInstance( TDEInstance* src );
/**
* Destructor.
*/
virtual ~TDEInstance();
/**
* Returns the application standard dirs object.
* @return The TDEStandardDirs of the application.
*/
TDEStandardDirs *dirs() const;
/**
* Returns the general config object ("appnamerc").
* @return the TDEConfig object for the instance.
*/
TDEConfig *config() const;
/**
* Returns the general config object ("appnamerc").
* @return the TDEConfig object for the instance.
*/
TDESharedConfig *sharedConfig() const;
/**
* Set a read-only flag on the configuration files
* This must be called before config() or dirs() to have any effect
* Defaults to false
* @param ro read only if true
*/
void setConfigReadOnly(bool ro);
/**
* Returns an iconloader object.
* @return the iconloader object.
*/
TDEIconLoader *iconLoader() const;
#ifdef __TDE_HAVE_TDEHWLIB
/**
* Returns a TDEHardwareDevices object.
* @return the hardwaredevices object.
*/
TDEHardwareDevices *hardwareDevices() const;
/**
* Returns a TDEGlobalNetworkManager object.
* @return the networkmanager object.
*/
TDEGlobalNetworkManager *networkManager() const;
#endif
/**
* Re-allocate the global iconloader.
*/
void newIconLoader() const;
/**
* Returns the about data of this instance
* Warning, can be 0L
* @return the about data of the instance, or 0 if it has
* not been set yet
*/
const TDEAboutData *aboutData() const;
/**
* Returns the name of the instance
* @return the instance name, can be null if the TDEInstance has been
* created with a null name
*/
TQCString instanceName() const;
/**
* Returns the KMimeSourceFactory of the instance.
* Mainly added for API completeness and future extensibility.
* @return the KMimeSourceFactory set as default for this application.
*/
KMimeSourceFactory* mimeSourceFactory () const;
protected:
/**
* Copy Constructor is not allowed
*/
TDEInstance( const TDEInstance& );
/**
* Set name of default config file.
* @param name the name of the default config file
* @since 3.1
*/
void setConfigName(const TQString &name);
private:
mutable TDEStandardDirs *_dirs;
mutable TDEConfig *_config;
mutable TDEIconLoader *_iconLoader;
#ifdef __TDE_HAVE_TDEHWLIB
mutable TDEHardwareDevices *_hardwaredevices;
mutable TDEGlobalNetworkManager *_networkmanager;
#endif
mutable void *_placeholder;
TQCString _name;
const TDEAboutData *_aboutData;
protected:
virtual void virtual_hook( int id, void* data );
private:
TDEInstancePrivate *d;
bool m_configReadOnly;
};
#endif

@ -35,7 +35,7 @@
#include "tdeglobal.h"
#include "tdestandarddirs.h"
#include "tdesimpleconfig.h"
#include "kinstance.h"
#include "tdeinstance.h"
#include "tdeconfig.h"
#include "kdebug.h"
#include "kcalendarsystem.h"

@ -7,7 +7,7 @@
#include <kdebug.h>
#include <tdeglobal.h>
#include <tdeglobalaccel.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <tdeshortcut.h>
#include "tdeshortcutlist.h"

@ -48,7 +48,7 @@
#include "tdestandarddirs.h"
#include "tdeconfig.h"
#include "kinstance.h"
#include "tdeinstance.h"
#include "kshell.h"
#include "tdesimpleconfig.h"
#include "kuser.h"

@ -50,7 +50,7 @@
#include "tdeglobal.h"
#include "tdeapplication.h"
#include "kinstance.h"
#include "tdeinstance.h"
#include "tdetempfile.h"
#include "tdestandarddirs.h"
#include "kde_file.h"

@ -1,6 +1,6 @@
#include "kdebug.h"
#include <tqwidget.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <iostream>
#include <tqapplication.h>
#include <tqpen.h>

@ -1,6 +1,6 @@
#include <tdeapplication.h>
#include <kdebug.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <tdestandarddirs.h>
#include <tdeconfig.h>

@ -29,7 +29,7 @@
#include "misc/loader.h"
#include "misc/arena.h"
#include <kinstance.h>
#include <tdeinstance.h>
#include <tdeaboutdata.h>
#include <tdelocale.h>

@ -30,7 +30,7 @@
#include <tqtimer.h>
#include <tdeio/job.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <kmimetype.h>
#include <tdelocale.h>

@ -20,7 +20,7 @@
#include "tdemultipart.h"
#include <tqvbox.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <kmimetype.h>
#include <tdelocale.h>
#include <tdeio/job.h>

@ -28,7 +28,7 @@ DEALINGS IN THE SOFTWARE.
#include <tqfile.h>
#include <tqtextstream.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <tdestandarddirs.h>
#include <tdeconfig.h>
#include <kdebug.h>

@ -52,7 +52,7 @@
#include <tqtextstream.h>
#include <tqregexp.h>
#include <tqfont.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <tdestandarddirs.h>
#include <tdeglobal.h>
#include <tdeconfig.h>

@ -21,7 +21,7 @@
#include <tdelistview.h>
#include <kdialogbase.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <tdeglobal.h>
#include "knotifywidgetbase.h"

@ -36,7 +36,7 @@
#include <tdeglobal.h>
#include <kicondialog.h>
#include <kiconloader.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <klineedit.h>
#include <tdelocale.h>
#include <kmimetype.h>

@ -29,7 +29,7 @@
#include <tqtextcodec.h>
#ifdef DATAKIOSLAVE
# include <kinstance.h>
# include <tdeinstance.h>
# include <stdlib.h>
#endif
#ifdef TESTKIO

@ -23,7 +23,7 @@
#include <tdestandarddirs.h>
#include <klibloader.h>
#include <kdebug.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <ktrader.h>
#include <tdeparts/componentfactory.h>

@ -21,7 +21,7 @@
#define KSCAN_H
#include <kdialogbase.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <klibloader.h>
class TQImage;

@ -23,7 +23,7 @@
#include <tqfile.h>
#include <tqtextstream.h>
#include <kdebug.h>
#include <kinstance.h>
#include <tdeinstance.h>
void test_block( const TQString & fileName )
{

@ -1,7 +1,7 @@
#include <stdio.h>
#include <tqdir.h>
#include <tqfile.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <kurl.h>
#include <tdefilemetainfo.h>
#include <kmimetype.h>

@ -19,7 +19,7 @@
#include <kmimetype.h>
#include <kmimemagic.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <stdio.h>
int main( int argc, char** argv )

@ -17,7 +17,7 @@
*/
#include <kmimetype.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <ktempdir.h>
#include <kprotocolinfo.h>
#include <tqdir.h>

@ -18,7 +18,7 @@
#include "ktar.h"
#include <stdio.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <tqfile.h>
#include <assert.h>

@ -18,7 +18,7 @@
#include "kzip.h"
#include <stdio.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <kdebug.h>
#include <tqfile.h>

@ -73,7 +73,7 @@
#include <kshred.h>
#include <kdebug.h>
#include <kurl.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <tdesimpleconfig.h>
#include <tdetempfile.h>
#include <tdelocale.h>

@ -53,7 +53,7 @@
#include <kdebug.h>
#include <tdelocale.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <kmimemagic.h>
#include <kmimetype.h>
#include <ksockaddr.h>

@ -57,7 +57,7 @@
#include <kservice.h>
#include <krfcdate.h>
#include <kmdcodec.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <kresolver.h>
#include <kmimemagic.h>
#include <dcopclient.h>

@ -32,7 +32,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <tqstring.h>
#include <tqptrlist.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <tdelocale.h>
#include <tdecmdlineargs.h>
#include <tdeglobal.h>

@ -30,7 +30,7 @@
#include <tqfile.h>
#include <kurl.h>
#include <kdebug.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <kiso.h>
#include <kmimemagic.h>

@ -25,7 +25,7 @@
#include <tdeaccel.h>
#include <tdeparts/plugin.h>
#include <kstatusbar.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <khelpmenu.h>
#include <tdestandarddirs.h>
#include <tqapplication.h>

@ -25,7 +25,7 @@
#include <tdelocale.h>
#include <tdeglobal.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <assert.h>
using namespace KParts;

@ -22,7 +22,7 @@
#include <tdeparts/event.h>
#include <tdeparts/part.h>
#include <tdeparts/plugin.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <kstatusbar.h>
#include <khelpmenu.h>
#include <tdestandarddirs.h>

@ -32,7 +32,7 @@
#include <tqtextstream.h>
#include <tqfileinfo.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <tdelocale.h>
#include <tdetempfile.h>
#include <tdemessagebox.h>

@ -30,7 +30,7 @@
#include <tqfileinfo.h>
#include <klibloader.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <tdestandarddirs.h>
#include <kdebug.h>
#include <kxmlguifactory.h>

@ -72,7 +72,7 @@
#include <kdebug.h>
#include <tdelocale.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <twin.h>
#include <tdeaction.h>

@ -50,7 +50,7 @@
#include <kdebug.h>
#include <tdelocale.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <twin.h>
#include <kurl.h>

@ -35,7 +35,7 @@
#include <tdelocale.h>
#include <kicontheme.h>
#include <kiconloader.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <tdemessagebox.h>
#include <kxmlguifactory.h>
#include <kseparator.h>

@ -28,7 +28,7 @@
#include <tqregexp.h>
#include <tqguardedptr.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <tdestandarddirs.h>
#include <kdebug.h>
#include <tdeaction.h>

@ -34,7 +34,7 @@
#include <tdeaction.h>
#include <kdebug.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <tdeglobal.h>
#include <tdeshortcut.h>
#include <tdestandarddirs.h>

@ -28,7 +28,7 @@
#include <tdeconfigdialogmanager.h>
#include <kdebug.h>
#include <tdeglobal.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <tdelocale.h>
#include "tdecmodule.h"

@ -25,7 +25,7 @@
#include <kdebug.h>
#include <tdeglobal.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <tdeaboutdata.h>
#include <tdecmdlineargs.h>
#include <tdelocale.h>

@ -55,7 +55,7 @@
#include <tqsplitter.h>
#include <tqframe.h>
#include "kplugininfo.h"
#include <kinstance.h>
#include <tdeinstance.h>
#include <tqptrdict.h>
#include <tqstringlist.h>
#include "tdecmoduleproxy.h"

@ -1,6 +1,6 @@
[Global]
PluginName=KDEWidgets
Includes=kinstance.h,classpreviews.h
Includes=tdeinstance.h,classpreviews.h
Init=new TDEInstance("tdewidgets");
[KActiveLabel]

@ -1,6 +1,6 @@
/* Copyright (C) 2004-2005 ian reinhart geiser <geiseri@sourcextreme.com> */
#include <tdeaboutdata.h>
#include <kinstance.h>
#include <tdeinstance.h>
#include <tdecmdlineargs.h>
#include <tdeconfig.h>
#include <kmacroexpander.h>

@ -1,6 +1,6 @@
[Global]
PluginName=KDEWidgets
Includes=kinstance.h,classpreviews.h
Includes=tdeinstance.h,classpreviews.h
Init=new TDEInstance("tdewidgets");
[KActiveLabel]

@ -68,7 +68,7 @@ tdeaccelmanager.cpp \
tdeshortcut.cpp \
tdeshortcutmenu.cpp \
tdeshortcutlist.cpp \
kinstance.cpp \
tdeinstance.cpp \
tdeversion.cpp \
tdelocale.cpp \
kicontheme.cpp \

Loading…
Cancel
Save