summaryrefslogtreecommitdiffstats
path: root/kopete/libkopete/kopeteuiglobal.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commitbcb704366cb5e333a626c18c308c7e0448a8e69f (patch)
treef0d6ab7d78ecdd9207cf46536376b44b91a1ca71 /kopete/libkopete/kopeteuiglobal.h
downloadtdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.tar.gz
tdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/libkopete/kopeteuiglobal.h')
-rw-r--r--kopete/libkopete/kopeteuiglobal.h72
1 files changed, 72 insertions, 0 deletions
diff --git a/kopete/libkopete/kopeteuiglobal.h b/kopete/libkopete/kopeteuiglobal.h
new file mode 100644
index 00000000..4a79eb87
--- /dev/null
+++ b/kopete/libkopete/kopeteuiglobal.h
@@ -0,0 +1,72 @@
+/*
+ kopeteuiglobal.h - Kopete UI Globals
+
+ Copyright (c) 2004 by Richard Smith <kde@metafoo.co.uk>
+
+ Kopete (c) 2004 by the Kopete developers <kopete-devel@kde.org>
+
+ *************************************************************************
+ * *
+ * This library is free software; you can redistribute it and/or *
+ * modify it under the terms of the GNU Lesser General Public *
+ * License as published by the Free Software Foundation; either *
+ * version 2 of the License, or (at your option) any later version. *
+ * *
+ *************************************************************************
+*/
+
+#ifndef KOPETEUIGLOBAL_H
+#define KOPETEUIGLOBAL_H
+
+#include <qwidget.h>
+
+#include "kopete_export.h"
+
+namespace Kopete
+{
+
+namespace UI
+{
+
+/**
+ * This namespace contains the Kopete user interface's global settings
+ */
+namespace Global
+{
+ /**
+ * Set the main widget to widget
+ */
+ KOPETE_EXPORT void setMainWidget( QWidget *widget );
+ /**
+ * Returns the main widget - this is the widget that message boxes
+ * and KNotify stuff should use as a parent.
+ */
+ KOPETE_EXPORT QWidget *mainWidget();
+
+ /**
+ * \brief Returns the WId of the system tray.
+ *
+ * Allows developers easy access to the WId of the system tray so
+ * that it can be used for passive popups in the protocols
+ * \return the WId of the system tray. Returns the WId of the main
+ * widget if there's no system tray.
+ */
+ KOPETE_EXPORT int sysTrayWId();
+
+ /**
+ * \brief Set the WId of the system tray.
+ *
+ * Called by the KopeteSystemTray constructor and destructor to
+ * set the WId for the system tray appropriately
+ */
+ KOPETE_EXPORT void setSysTrayWId( int newWinId );
+} //Global::UI
+
+} //UI
+
+}
+
+#endif
+
+// vim: set noet ts=4 sts=4 sw=4:
+