tdeuniqueapplication.cpp
293 if (!dc->call(appName, TDECmdLineArgs::about->appName(), "newInstance()", data, replyType, reply))
295 kdError() << "Communication problem with " << TDECmdLineArgs::about->appName() << ", it probably crashed." << endl;
317 TDEUniqueApplication::TDEUniqueApplication(bool allowStyles, bool GUIenabled, bool configUnique)
TDEConfig * config() const
Returns the general config object ("appnamerc").
Definition: kinstance.cpp:212
TDEUniqueApplication(bool allowStyles=true, bool GUIenabled=true, bool configUnique=false)
Constructor.
Definition: tdeuniqueapplication.cpp:317
DCOPClientTransaction * beginTransaction()
virtual int newInstance()
Creates a new "instance" of the application.
Definition: tdeuniqueapplication.cpp:476
Helper class to facilitate working with TDEConfig / KSimpleConfig groups.
Definition: tdeconfigbase.h:2082
const char * appName() const
Returns the application's internal name.
Definition: tdeaboutdata.cpp:237
bool isRestored() const
Is the application restored from the session manager?
Definition: tdeapplication.h:318
static TDECmdLineArgs * parsedArgs(const char *id=0)
Access parsed arguments.
Definition: tdecmdlineargs.cpp:310
bool isApplicationRegistered(const TQCString &remApp)
static DCOPClient * dcopClient()
Returns a pointer to a DCOPClient for the application.
Definition: tdeapplication.cpp:1187
static void loadAppArgs(TQDataStream &)
Load arguments from a stream.
Definition: tdecmdlineargs.cpp:264
void endTransaction(DCOPClientTransaction *t, TQCString &replyType, TQByteArray &replyData)
bool process(const TQCString &fun, const TQByteArray &data, TQCString &replyType, TQByteArray &replyData)
Dispatches any incoming DCOP message for a new instance.
Definition: tdeuniqueapplication.cpp:403
bool attach()
static void addCmdLineOptions(const TDECmdLineOptions *options, const char *name=0, const char *id=0, const char *afterId=0)
Add options to your application.
Definition: tdecmdlineargs.cpp:206
bool call(const TQCString &remApp, const TQCString &remObj, const TQCString &remFun, const TQByteArray &data, TQCString &replyType, TQByteArray &replyData, bool useEventLoop, int timeout, bool forceRemote)
bool restoringSession()
Returns whether newInstance() is being called while session restoration is in progress.
Definition: tdeuniqueapplication.cpp:471
bool readBoolEntry(const TQString &pKey, bool bDefault=false) const
Reads a boolean entry.
Definition: tdeconfigbase.cpp:748
Controls and provides information to all KDE applications.
Definition: tdeapplication.h:94
bool isSet(const char *option) const
Read out a boolean option or check for the presence of string option.
Definition: tdecmdlineargs.cpp:1181
TQCString registerAs(const TQCString &appId, bool addPID=true)
static void addCmdLineOptions()
Adds command line options specific for TDEUniqueApplication.
Definition: tdeuniqueapplication.cpp:87
virtual bool process(const TQCString &fun, const TQByteArray &data, TQCString &replyType, TQByteArray &replyData)