kpilot

PluginUtility Namespace Reference

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


Functions

QString findArgument (const QStringList &a, const QString argname)
QString findArgument (const QStringList &a, const QString &arg)
bool isRunning (const QCString &appName)
unsigned long pluginVersion (const KLibrary *)
QString pluginVersionString (const KLibrary *lib)

Detailed Description

A namespace containing only static helper methods.


Function Documentation

QString PluginUtility::findArgument ( const QStringList a,
const QString  argname 
)

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

Don't include the -- in the argname.

QString PluginUtility::findArgument ( const QStringList a,
const QString arg 
)

Definition at line 652 of file plugin.cc.

bool PluginUtility::isRunning ( const QCString 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.

QString PluginUtility::pluginVersionString ( const KLibrary *  lib  ) 

Definition at line 702 of file plugin.cc.