• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KDEsu

  • kdesu
stub.h
Go to the documentation of this file.
1/* vi: ts=8 sts=4 sw=4
2 *
3 * This file is part of the KDE project, module kdesu.
4 * Copyright (C) 1999,2000 Geert Jansen <jansen@kde.org>
5 *
6 * This is free software; you can use this library under the GNU Library
7 * General Public License, version 2. See the file "COPYING.LIB" for the
8 * exact licensing terms.
9 */
10
11#ifndef __Stub_h_Included__
12#define __Stub_h_Included__
13
14#include <QtCore/QByteRef>
15#include <QtCore/QList>
16
17#include "process.h"
18
19#include <kdesu/kdesu_export.h>
20
21namespace KDESu {
22
23namespace KDESuPrivate { class KCookie; }
24
25
32class KDESU_EXPORT StubProcess: public PtyProcess
33{
34public:
35 StubProcess();
36 ~StubProcess();
37
41 void setCommand(const QByteArray &command);
42
46 void setUser(const QByteArray &user);
47
51 void setXOnly(bool xonly);
52
58 void setPriority(int prio);
59
64 enum Scheduler { SchedNormal, SchedRealtime };
65
69 void setScheduler(int sched);
70
71protected:
72
76 int ConverseStub(int check);
77
82 virtual QByteArray display();
83#ifdef Q_WS_X11
87 virtual QByteArray displayAuth();
88#endif
89 bool m_bXOnly;
90 int m_Priority;
91 int m_Scheduler;
92 QByteArray m_Command;
93 QByteArray m_User;
94 KDESuPrivate::KCookie *m_pCookie;
95
96private:
97 QByteArray commaSeparatedList(const QList<QByteArray> &);
98 void writeString(const QByteArray &str);
99
100protected:
101 virtual void virtual_hook( int id, void* data );
102private:
103 class StubProcessPrivate;
104 StubProcessPrivate * const d;
105};
106
107}
108
109#endif // __Stub_h_Included__
KDESu::KDESuPrivate::KCookie
Utility class to access the authentication tokens needed to run a KDE program (X11 cookies on X11,...
Definition: kcookie.h:28
KDESu::PtyProcess
Synchronous communication with tty programs.
Definition: process.h:38
KDESu::StubProcess
Chat with kdesu_stub.
Definition: stub.h:33
KDESu::StubProcess::m_bXOnly
bool m_bXOnly
Definition: stub.h:89
KDESu::StubProcess::Scheduler
Scheduler
Different schedulers.
Definition: stub.h:64
KDESu::StubProcess::SchedNormal
@ SchedNormal
Definition: stub.h:64
KDESu::StubProcess::m_Scheduler
int m_Scheduler
Definition: stub.h:91
KDESu::StubProcess::m_pCookie
KDESuPrivate::KCookie * m_pCookie
Definition: stub.h:94
KDESu::StubProcess::m_Priority
int m_Priority
Definition: stub.h:90
KDESu::StubProcess::m_Command
QByteArray m_Command
Definition: stub.h:92
KDESu::StubProcess::m_User
QByteArray m_User
Definition: stub.h:93
QList
kdesu_export.h
KDESu
Definition: client.cpp:41
process.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEsu

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

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal