KDEsu
kcookie.h
Go to the documentation of this file.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 <qcstring.h>
00017 #include <qvaluelist.h>
00018 
00019 typedef QValueList<QCString> QCStringList;
00020 
00021 
00027 class KDESU_EXPORT KCookie
00028 {
00029 public:
00030     KCookie();
00031 
00035     QCString display() { return m_Display; }
00036 
00037 #ifdef Q_WS_X11
00038 
00041     QCString displayAuth() { return m_DisplayAuth; }
00042 #endif
00043 
00047     void setDcopTransport(const QCString &dcopTransport);
00048 
00052     QCString dcopServer();
00053 
00058     QCString dcopAuth();
00059 
00063     QCString iceAuth();
00064 
00065 private:
00066     void getXCookie();
00067     void getICECookie();
00068     QCStringList split(const QCString &line, char ch);
00069 
00070     void blockSigChild();
00071     void unblockSigChild();
00072 
00073     bool m_bHaveDCOPCookies;
00074     bool m_bHaveICECookies;
00075 
00076     QCString m_Display;
00077 #ifdef Q_WS_X11
00078     QCString m_DisplayAuth;
00079 #endif
00080     QCString m_DCOPSrv;
00081     QCString m_DCOPAuth;
00082     QCString m_ICEAuth;
00083     QCString m_dcopTransport;
00084 
00085     class KCookiePrivate;
00086     KCookiePrivate *d;
00087 };
00088 
00089 
00090 #endif // __KCookie_h_Included__