• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

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

typedef QMap<QString, QString> UserList

Definition at line 55 of file dcop.cpp.


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

Enumerator:
DefaultSession 
AllSessions 
QuerySessions 
CustomSession 

Definition at line 72 of file dcop.cpp.


Function Documentation

int callFunction ( const char *  app,
const char *  obj,
const char *  func,
const QCStringList  args 
)

Definition at line 159 of file dcop.cpp.

QStringList dcopSessionList ( const QString &  user,
const QString &  home 
)

Return a list of available DCOP sessions for the specified user An empty list means no sessions are available, or an error occurred.

Definition at line 393 of file dcop.cpp.

bool endsWith ( QCString &  id,
char  c 
)

Definition at line 79 of file dcop.cpp.

int main ( int  argc,
char **  argv 
)

Definition at line 758 of file dcop.cpp.

void queryApplications ( const QCString &  filter  ) 

Definition at line 89 of file dcop.cpp.

void queryFunctions ( const char *  app,
const char *  obj 
)

Definition at line 145 of file dcop.cpp.

void queryObjects ( const QCString &  app,
const QCString &  filter 
)

Definition at line 110 of file dcop.cpp.

int runDCOP ( QCStringList  args,
UserList  users,
Session  session,
const QString  sessionName,
bool  readStdin,
bool  updateUserTime 
)

Do the actual DCOP call.

Definition at line 457 of file dcop.cpp.

void sendUserTime ( const char *  app  ) 

Definition at line 429 of file dcop.cpp.

void showHelp ( int  exitCode = 0  ) 

Show command-line help and exit.

Definition at line 322 of file dcop.cpp.

bool startsWith ( const QCString &  id,
const char *  str,
int  n 
)

Definition at line 74 of file dcop.cpp.

static UserList userList (  )  [static]

Return a list of all users and their home directories.

Returns an empty list if /etc/passwd cannot be read for some reason.

Definition at line 377 of file dcop.cpp.


Variable Documentation

QTextStream cerr_(stderr, IO_WriteOnly) [static]

QTextStream cin_(stdin, IO_ReadOnly) [static]

QTextStream cout_(stdout, IO_WriteOnly) [static]

DCOPClient* dcop = 0 [static]

Definition at line 57 of file dcop.cpp.

dcop

Skip menu "dcop"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal