summaryrefslogtreecommitdiff
path: root/tubes/source/contacts.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'tubes/source/contacts.hxx')
-rw-r--r--tubes/source/contacts.hxx64
1 files changed, 64 insertions, 0 deletions
diff --git a/tubes/source/contacts.hxx b/tubes/source/contacts.hxx
new file mode 100644
index 000000000000..7684db962d22
--- /dev/null
+++ b/tubes/source/contacts.hxx
@@ -0,0 +1,64 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#ifndef INCLUDED_TUBES_SOURCE_CONTACTS_HXX
+#define INCLUDED_TUBES_SOURCE_CONTACTS_HXX
+
+#include <sal/config.h>
+
+#include <tubes/manager.hxx>
+#include <vcl/button.hxx>
+#include <vcl/dialog.hxx>
+#include <vcl/lstbox.hxx>
+
+class Collaboration;
+
+namespace tubes {
+
+class TubeContacts : public ModelessDialog
+{
+ VclPtr<PushButton> mpBtnDemo;
+ VclPtr<PushButton> mpBtnBuddy;
+ VclPtr<PushButton> mpBtnGroup;
+ VclPtr<PushButton> mpBtnInvite;
+ VclPtr<PushButton> mpBtnListen;
+ VclPtr<ListBox> mpList;
+ Collaboration* mpCollaboration;
+
+ DECL_LINK( BtnDemoHdl, Button*, void );
+ DECL_LINK( BtnConnectHdl, Button*, void );
+ DECL_LINK( BtnGroupHdl, Button*, void );
+ DECL_LINK( BtnInviteHdl, Button*, void );
+ DECL_STATIC_LINK( TubeContacts, BtnListenHdl, Button*, void );
+
+ AccountContactPairV maACs;
+
+ void Invite();
+
+ void StartDemoSession();
+
+ void StartBuddySession();
+
+ void StartGroupSession();
+
+public:
+ explicit TubeContacts( Collaboration* pCollaboration );
+
+ virtual ~TubeContacts() override;
+
+ virtual void dispose() override;
+
+ void Populate();
+};
+
+}
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */