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

KDEsu

  • sources
  • kde-4.12
  • kdelibs
  • 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 
21 namespace KDESu {
22 
23 namespace KDESuPrivate { class KCookie; }
24 
25 
32 class KDESU_EXPORT StubProcess: public PtyProcess
33 {
34 public:
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 
71 protected:
72 
76  int ConverseStub(int check);
77 
82  virtual QByteArray display();
83 #ifdef Q_WS_X11
84 
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 
96 private:
97  QByteArray commaSeparatedList(const QList<QByteArray> &);
98  void writeString(const QByteArray &str);
99 
100 protected:
101  virtual void virtual_hook( int id, void* data );
102 private:
103  class StubProcessPrivate;
104  StubProcessPrivate * const d;
105 };
106 
107 }
108 
109 #endif // __Stub_h_Included__
KDESu::PtyProcess
Synchronous communication with tty programs.
Definition: process.h:37
KDESu::StubProcess::m_Priority
int m_Priority
Definition: stub.h:90
kdesu_export.h
KDESu::StubProcess::m_bXOnly
bool m_bXOnly
Definition: stub.h:89
KDESu::StubProcess::m_User
QByteArray m_User
Definition: stub.h:93
KDESu::StubProcess::m_Command
QByteArray m_Command
Definition: stub.h:92
KDESu::StubProcess::m_pCookie
KDESuPrivate::KCookie * m_pCookie
Definition: stub.h:94
process.h
KDESu::KDESuPrivate::KCookie
Utility class to access the authentication tokens needed to run a KDE program (X11 cookies on X11...
Definition: kcookie.h:27
KDESu::StubProcess::Scheduler
Scheduler
Different schedulers.
Definition: stub.h:64
KDESu::StubProcess
Chat with kdesu_stub.
Definition: stub.h:32
KDESu::StubProcess::m_Scheduler
int m_Scheduler
Definition: stub.h:91
QList< QByteArray >
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:48 by doxygen 1.8.7 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 API Reference

Skip menu "kdelibs 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
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



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