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

kdesu

  • kdesu
kcookie.h
1 /* vi: ts=8 sts=4 sw=4
2  *
3  * $Id$
4  *
5  * This file is part of the KDE project, module kdesu
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 __KCookie_h_Included__
14 #define __KCookie_h_Included__
15 
16 #include <tqcstring.h>
17 #include <tqvaluelist.h>
18 
19 typedef TQValueList<TQCString> QCStringList;
20 
21 
27 class KDESU_EXPORT KCookie
28 {
29 public:
30  KCookie();
31 
35  TQCString display() { return m_Display; }
36 
37 #ifdef Q_WS_X11
38 
41  TQCString displayAuth() { return m_DisplayAuth; }
42 #endif
43 
47  void setDcopTransport(const TQCString &dcopTransport);
48 
52  TQCString dcopServer();
53 
58  TQCString dcopAuth();
59 
63  TQCString iceAuth();
64 
65 private:
66  void getXCookie();
67  void getICECookie();
68  QCStringList split(const TQCString &line, char ch);
69 
70  void blockSigChild();
71  void unblockSigChild();
72 
73  bool m_bHaveDCOPCookies;
74  bool m_bHaveICECookies;
75 
76  TQCString m_Display;
77 #ifdef Q_WS_X11
78  TQCString m_DisplayAuth;
79 #endif
80  TQCString m_DCOPSrv;
81  TQCString m_DCOPAuth;
82  TQCString m_ICEAuth;
83  TQCString m_dcopTransport;
84 
85  class KCookiePrivate;
86  KCookiePrivate *d;
87 };
88 
89 
90 #endif // __KCookie_h_Included__
KCookie
Utility class to access the authentication tokens needed to run a KDE program (X11 and DCOP cookies)...
Definition: kcookie.h:27
KCookie::display
TQCString display()
Returns the X11 display.
Definition: kcookie.h:35

kdesu

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

kdesu

Skip menu "kdesu"
  • 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
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kdesu by doxygen 1.8.6
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |