[ekiga] Adding the loudmout-handler.h that I have forgotten to commit in!
- From: Julien Puydt <jpuydt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] Adding the loudmout-handler.h that I have forgotten to commit in!
- Date: Fri, 16 Sep 2011 18:27:15 +0000 (UTC)
commit 9a4074fec7c61b05401a002c88a51351772f5663
Author: Julien Puydt <jpuydt newton localdomain>
Date: Fri Sep 16 20:27:41 2011 +0200
Adding the loudmout-handler.h that I have forgotten to commit in!
plugins/loudmouth/loudmouth-handler.h | 66 +++++++++++++++++++++++++++++++++
1 files changed, 66 insertions(+), 0 deletions(-)
---
diff --git a/plugins/loudmouth/loudmouth-handler.h b/plugins/loudmouth/loudmouth-handler.h
new file mode 100644
index 0000000..1f74a38
--- /dev/null
+++ b/plugins/loudmouth/loudmouth-handler.h
@@ -0,0 +1,66 @@
+
+/*
+ * Ekiga -- A VoIP and Video-Conferencing application
+ * Copyright (C) 2000-2011 Damien Sandras
+
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or (at
+ * your option) any later version. This program is distributed in the hope
+ * that it will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ * See the GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * Ekiga is licensed under the GPL license and as a special exception, you
+ * have permission to link or otherwise combine this program with the
+ * programs OPAL, OpenH323 and PWLIB, and distribute the combination, without
+ * applying the requirements of the GNU GPL to the OPAL, OpenH323 and PWLIB
+ * programs, as long as you do follow the requirements of the GNU GPL for all
+ * the rest of the software thus combined.
+ */
+
+
+/*
+ * loudmouth-handler.h - description
+ * ------------------------------------------
+ * begin : written in 2011 by Julien Puydt
+ * copyright : (c) 2011 by Julien Puydt
+ * description : declaration of an abstract loudmouth handler class
+ *
+ */
+
+#ifndef __LOUDMOUTH_HANDLER_H__
+#define __LOUDMOUTH_HANDLER_H__
+
+#include <loudmouth/loudmouth.h>
+
+namespace LM
+{
+
+ class Handler
+ {
+ public:
+
+ virtual ~Handler () {}
+
+ virtual void handle_up (LmConnection* connection,
+ const std::string name) = 0;
+
+ virtual void handle_down (LmConnection* connection) = 0;
+
+ virtual LmHandlerResult handle_iq (LmConnection* connection,
+ LmMessage* message) = 0;
+
+ virtual LmHandlerResult handle_message (LmConnection* connection,
+ LmMessage* message) = 0;
+
+ virtual LmHandlerResult handle_presence (LmConnection* connection,
+ LmMessage* message) = 0;
+ };
+};
+
+#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]