• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdesu
 

tdesu

  • tdesu
stub.h
1 /*
2  *
3  * $Id$
4  *
5  * This file is part of the KDE project, module tdesu.
6  * Copyright (C) 1999,2000 Geert Jansen <jansen@kde.org>
7  *
8  * This is free software; you can use this library under the GNU Library
9  * General Public License, version 2. See the file "COPYING.LIB" for the
10  * exact licensing terms.
11  */
12 
13 #ifndef __Stub_h_Included__
14 #define __Stub_h_Included__
15 
16 #include <tqcstring.h>
17 #include <tqvaluelist.h>
18 
19 #include "process.h"
20 #include "kcookie.h"
21 
22 #include <tdelibs_export.h>
23 
24 typedef TQValueList<TQCString> QCStringList;
25 
32 class TDESU_EXPORT StubProcess: public PtyProcess
33 {
34 public:
35  StubProcess();
36  ~StubProcess();
37 
41  void setDcopTransport(const TQCString &dcopTransport)
42  { m_pCookie->setDcopTransport(dcopTransport); }
43 
47  void setCommand(const TQCString &command) { m_Command = command; }
48 
52  void setUser(const TQCString &user) { m_User = user; }
53 
57  void setXOnly(bool xonly) { m_bXOnly = xonly; }
58 
62  void setDCOPForwarding(bool dcopForwarding) { m_bDCOPForwarding = dcopForwarding; }
63 
69  void setPriority(int prio);
70 
75  enum Scheduler { SchedNormal, SchedRealtime };
76 
80  void setScheduler(int sched) { m_Scheduler = sched; }
81 
82 protected:
83 
87  int ConverseStub(int check);
88 
93  // KDE4 remove
94  void notifyTaskbar(const TQString &suffix);
95 
100  virtual TQCString display() { return m_pCookie->display(); }
101 #ifdef TQ_WS_X11
105  virtual TQCString displayAuth() { return m_pCookie->displayAuth(); }
106 #endif
110  virtual TQCString dcopServer() { return m_pCookie->dcopServer(); }
114  virtual TQCString dcopAuth() { return m_pCookie->dcopAuth(); }
118  virtual TQCString iceAuth() { return m_pCookie->iceAuth(); }
119 
120  bool m_bXOnly;
121  bool m_bDCOPForwarding;
122  int m_Priority;
123  int m_Scheduler;
124  TQCString m_dcopTransport;
125  TQCString m_Command;
126  TQCString m_User;
127  KCookie *m_pCookie;
128 
129 private:
130  TQCString commaSeparatedList(QCStringList);
131 
132 protected:
133  virtual void virtual_hook( int id, void* data );
134 private:
135  class StubProcessPrivate;
136  StubProcessPrivate *d;
137 };
138 
139 #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:28
PtyProcess
Synchronous communication with tty programs.
Definition: process.h:37
StubProcess
Chat with tdesu_stub.
Definition: stub.h:33
StubProcess::display
virtual TQCString display()
This virtual function can be overloaded when special behavior is desired.
Definition: stub.h:100
StubProcess::Scheduler
Scheduler
Different schedulers.
Definition: stub.h:75
StubProcess::setDcopTransport
void setDcopTransport(const TQCString &dcopTransport)
Specify dcop transport.
Definition: stub.h:41
StubProcess::setCommand
void setCommand(const TQCString &command)
Set the command.
Definition: stub.h:47
StubProcess::setDCOPForwarding
void setDCOPForwarding(bool dcopForwarding)
Enable DCOP forwarding.
Definition: stub.h:62
StubProcess::setXOnly
void setXOnly(bool xonly)
Set to "X only mode": Sycoca is not built and tdeinit is not launched.
Definition: stub.h:57
StubProcess::dcopAuth
virtual TQCString dcopAuth()
See display.
Definition: stub.h:114
StubProcess::dcopServer
virtual TQCString dcopServer()
See display.
Definition: stub.h:110
StubProcess::setUser
void setUser(const TQCString &user)
Set the target user.
Definition: stub.h:52
StubProcess::setScheduler
void setScheduler(int sched)
Set the scheduler type.
Definition: stub.h:80
StubProcess::iceAuth
virtual TQCString iceAuth()
See display.
Definition: stub.h:118

tdesu

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

tdesu

Skip menu "tdesu"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdesu by doxygen 1.9.1
This website is maintained by Timothy Pearson.