stub.h
/* vi: ts=8 sts=4 sw=4
*
* $Id: stub.h 363273 2004-11-15 22:43:23Z mueller $
*
* This file is part of the KDE project, module kdesu.
* Copyright (C) 1999,2000 Geert Jansen <jansen@kde.org>
*
* This is free software; you can use this library under the GNU Library
* General Public License, version 2. See the file "COPYING.LIB" for the
* exact licensing terms.
*/
#ifndef __Stub_h_Included__
#define __Stub_h_Included__
#include <qcstring.h>
#include <qvaluelist.h>
#include "process.h"
#include "kcookie.h"
#include <kdelibs_export.h>
typedef QValueList<QCString> QCStringList;
class KDESU_EXPORT StubProcess: public PtyProcess
{
public:
StubProcess();
~StubProcess();
void setDcopTransport(const QCString &dcopTransport)
{ m_pCookie->setDcopTransport(dcopTransport); }
void setCommand(const QCString &command) { m_Command = command; }
void setUser(const QCString &user) { m_User = user; }
void setXOnly(bool xonly) { m_bXOnly = xonly; }
void setDCOPForwarding(bool dcopForwarding) { m_bDCOPForwarding = dcopForwarding; }
void setPriority(int prio);
enum Scheduler { SchedNormal, SchedRealtime };
void setScheduler(int sched) { m_Scheduler = sched; }
protected:
int ConverseStub(int check);
// KDE4 remove
void notifyTaskbar(const QString &suffix);
virtual QCString display() { return m_pCookie->display(); }
#ifdef Q_WS_X11
virtual QCString displayAuth() { return m_pCookie->displayAuth(); }
#endif
virtual QCString dcopServer() { return m_pCookie->dcopServer(); }
virtual QCString dcopAuth() { return m_pCookie->dcopAuth(); }
virtual QCString iceAuth() { return m_pCookie->iceAuth(); }
bool m_bXOnly;
bool m_bDCOPForwarding;
int m_Priority;
int m_Scheduler;
QCString m_dcopTransport;
QCString m_Command;
QCString m_User;
KCookie *m_pCookie;
private:
QCString commaSeparatedList(QCStringList);
protected:
virtual void virtual_hook( int id, void* data );
private:
class StubProcessPrivate;
StubProcessPrivate *d;
};
#endif // __Stub_h_Included__
KCookie
Utility class to access the authentication tokens needed to run a KDE program (X11 and DCOP cookies)...
Definition: kcookie.h:27
StubProcess::setDCOPForwarding
void setDCOPForwarding(bool dcopForwarding)
Enable DCOP forwarding.
Definition: stub.h:62
StubProcess
Chat with kdesu_stub.
Definition: stub.h:32
StubProcess::dcopServer
virtual QCString dcopServer()
See display.
Definition: stub.h:110
StubProcess::dcopAuth
virtual QCString dcopAuth()
See display.
Definition: stub.h:114
StubProcess::setScheduler
void setScheduler(int sched)
Set the scheduler type.
Definition: stub.h:80
StubProcess::iceAuth
virtual QCString iceAuth()
See display.
Definition: stub.h:118
StubProcess::Scheduler
Scheduler
Different schedulers.
Definition: stub.h:75
PtyProcess
Synchronous communication with tty programs.
Definition: process.h:36
StubProcess::setDcopTransport
void setDcopTransport(const QCString &dcopTransport)
Specify dcop transport.
Definition: stub.h:41
StubProcess::setCommand
void setCommand(const QCString &command)
Set the command.
Definition: stub.h:47
StubProcess::setXOnly
void setXOnly(bool xonly)
Set to "X only mode": Sycoca is not built and kdeinit is not launched.
Definition: stub.h:57
StubProcess::display
virtual QCString display()
This virtual function can be overloaded when special behavior is desired.
Definition: stub.h:100
StubProcess::setUser
void setUser(const QCString &user)
Set the target user.
Definition: stub.h:52

KDE Home | KDE Accessibility Home | Description of Access Keys