kpilot/lib

PluginUtility Namespace Reference


Detailed Description

A namespace containing only static helper methods.


Functions

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

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.

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 284 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 292 of file plugin.cc.

KDE Home | KDE Accessibility Home | Description of Access Keys