tdesu
kcookie.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef __KCookie_h_Included__
00014 #define __KCookie_h_Included__
00015
00016 #include <tqcstring.h>
00017 #include <tqvaluelist.h>
00018
00019 typedef TQValueList<TQCString> QCStringList;
00020
00021
00027 class TDESU_EXPORT KCookie
00028 {
00029 public:
00030 KCookie();
00031
00035 TQCString display() { return m_Display; }
00036
00037 #ifdef Q_WS_X11
00038
00041 TQCString displayAuth() { return m_DisplayAuth; }
00042 #endif
00043
00047 void setDcopTransport(const TQCString &dcopTransport);
00048
00052 TQCString dcopServer();
00053
00058 TQCString dcopAuth();
00059
00063 TQCString iceAuth();
00064
00065 private:
00066 void getXCookie();
00067 void getICECookie();
00068 QCStringList split(const TQCString &line, char ch);
00069
00070 void blockSigChild();
00071 void unblockSigChild();
00072
00073 bool m_bHaveDCOPCookies;
00074 bool m_bHaveICECookies;
00075
00076 TQCString m_Display;
00077 #ifdef Q_WS_X11
00078 TQCString m_DisplayAuth;
00079 #endif
00080 TQCString m_DCOPSrv;
00081 TQCString m_DCOPAuth;
00082 TQCString m_ICEAuth;
00083 TQCString m_dcopTransport;
00084
00085 class KCookiePrivate;
00086 KCookiePrivate *d;
00087 };
00088
00089
00090 #endif // __KCookie_h_Included__