kpilot/lib

PluginUtility Namespace Reference

A namespace containing only static helper methods. More...


Functions

TQString findArgument (const TQStringList &a, const TQString &arg)
bool isRunning (const TQCString &appName)
unsigned long pluginVersion (const KLibrary *)
TQString pluginVersionString (const KLibrary *lib)
TQString findArgument (const TQStringList &a, const TQString argname)

Detailed Description

A namespace containing only static helper methods.


Function Documentation

TQString PluginUtility::findArgument ( const TQStringList &  a,
const TQString  argname 
)

Searches the argument list for --foo=bar and returns bar, TQString::null if not found.

Don't include the -- in the argname.

bool PluginUtility::isRunning ( const TQCString &  appName  ) 

This function attempts to detect whether or not the given application is running.

If it is, true is returned, otherwise false.

The current approach is to ask the DCOP server if the application has registered.

Definition at line 682 of file plugin.cc.

unsigned long PluginUtility::pluginVersion ( const KLibrary *  lib  ) 

Check a given library for its version, returning 0 if no version symbol is found.

Definition at line 690 of file plugin.cc.