dcop
dcop.cpp File Reference
#include <config.h>
#include <sys/types.h>
#include <pwd.h>
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <qbuffer.h>
#include <qcolor.h>
#include <qdir.h>
#include <qfile.h>
#include <qfileinfo.h>
#include <qimage.h>
#include <qmap.h>
#include <qstringlist.h>
#include <qtextstream.h>
#include <qvariant.h>
#include "../dcopclient.h"
#include "../dcopref.h"
#include "../kdatastream.h"
#include "marshall.cpp"
Include dependency graph for dcop.cpp:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Typedefs | |
typedef QMap< QString, QString > | UserList |
Enumerations | |
enum | Session { DefaultSession = 0, AllSessions, QuerySessions, CustomSession } |
Functions | |
int | callFunction (const char *app, const char *obj, const char *func, const QCStringList args) |
QStringList | dcopSessionList (const QString &user, const QString &home) |
bool | endsWith (QCString &id, char c) |
int | main (int argc, char **argv) |
void | queryApplications (const QCString &filter) |
void | queryFunctions (const char *app, const char *obj) |
void | queryObjects (const QCString &app, const QCString &filter) |
int | runDCOP (QCStringList args, UserList users, Session session, const QString sessionName, bool readStdin, bool updateUserTime) |
void | sendUserTime (const char *app) |
void | showHelp (int exitCode=0) |
bool | startsWith (const QCString &id, const char *str, int n) |
static UserList | userList () |
Variables | |
static QTextStream | cerr_ (stderr, IO_WriteOnly) |
static QTextStream | cin_ (stdin, IO_ReadOnly) |
static QTextStream | cout_ (stdout, IO_WriteOnly) |
static DCOPClient * | dcop = 0 |
Typedef Documentation
Enumeration Type Documentation
enum Session |
Session to send call to DefaultSession - current session.
Current KDE session when called without --user or --all-users option. Otherwise this value ignores all users with more than one active session. AllSessions - Send to all sessions found. requires --user or --all-users. QuerySessions - Don't call DCOP, return a list of available sessions. CustomSession - Use the specified session
Function Documentation
int callFunction | ( | const char * | app, | |
const char * | obj, | |||
const char * | func, | |||
const QCStringList | args | |||
) |
QStringList dcopSessionList | ( | const QString & | user, | |
const QString & | home | |||
) |
int runDCOP | ( | QCStringList | args, | |
UserList | users, | |||
Session | session, | |||
const QString | sessionName, | |||
bool | readStdin, | |||
bool | updateUserTime | |||
) |
void showHelp | ( | int | exitCode = 0 |
) |
bool startsWith | ( | const QCString & | id, | |
const char * | str, | |||
int | n | |||
) |
static UserList userList | ( | ) | [static] |
Variable Documentation
QTextStream cerr_(stderr, IO_WriteOnly) [static] |
QTextStream cin_(stdin, IO_ReadOnly) [static] |
QTextStream cout_(stdout, IO_WriteOnly) [static] |
DCOPClient* dcop = 0 [static] |