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

kdesu

stub.h

00001 /* vi: ts=8 sts=4 sw=4
00002  *
00003  * $Id$
00004  *
00005  * This file is part of the KDE project, module kdesu.
00006  * Copyright (C) 1999,2000 Geert Jansen <jansen@kde.org>
00007  * 
00008  * This is free software; you can use this library under the GNU Library 
00009  * General Public License, version 2. See the file "COPYING.LIB" for the 
00010  * exact licensing terms.
00011  */
00012 
00013 #ifndef __Stub_h_Included__
00014 #define __Stub_h_Included__
00015 
00016 #include <qcstring.h>
00017 #include <qvaluelist.h>
00018 
00019 #include "process.h"
00020 #include "kcookie.h"
00021 
00022 #include <kdelibs_export.h>
00023 
00024 typedef QValueList<QCString> QCStringList;
00025 
00032 class KDESU_EXPORT StubProcess: public PtyProcess
00033 {
00034 public:
00035     StubProcess();
00036     ~StubProcess();
00037 
00041     void setDcopTransport(const QCString &dcopTransport) 
00042        { m_pCookie->setDcopTransport(dcopTransport); }
00043 
00047     void setCommand(const QCString &command) { m_Command = command; }
00048 
00052     void setUser(const QCString &user) { m_User = user; }
00053 
00057     void setXOnly(bool xonly) { m_bXOnly = xonly; }
00058 
00062     void setDCOPForwarding(bool dcopForwarding) { m_bDCOPForwarding = dcopForwarding; }
00063 
00069     void setPriority(int prio);
00070 
00075     enum Scheduler { SchedNormal, SchedRealtime };
00076 
00080     void setScheduler(int sched) { m_Scheduler = sched; }
00081 
00082 protected:
00083 
00087     int ConverseStub(int check);
00088 
00093     // KDE4 remove
00094     void notifyTaskbar(const QString &suffix);
00095 
00100     virtual QCString display() { return m_pCookie->display(); }
00101 #ifdef Q_WS_X11
00102 
00105     virtual QCString displayAuth() { return m_pCookie->displayAuth(); }
00106 #endif
00107 
00110     virtual QCString dcopServer() { return m_pCookie->dcopServer(); }
00114     virtual QCString dcopAuth() { return m_pCookie->dcopAuth(); }
00118     virtual QCString iceAuth() { return m_pCookie->iceAuth(); }
00119 
00120     bool m_bXOnly;
00121     bool m_bDCOPForwarding;
00122     int m_Priority;
00123     int  m_Scheduler;
00124     QCString m_dcopTransport;
00125     QCString m_Command;
00126     QCString m_User;
00127     KCookie *m_pCookie;
00128     
00129 private:
00130     QCString commaSeparatedList(QCStringList);
00131 
00132 protected:
00133     virtual void virtual_hook( int id, void* data );
00134 private:
00135     class StubProcessPrivate;
00136     StubProcessPrivate *d;
00137 };
00138 
00139 #endif // __Stub_h_Included__

kdesu

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

@topname@

Skip menu "@topname@"
  •     kdnssd-avahi
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for @topname@ by doxygen 1.5.5
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