ekiga r7619 - in trunk: . lib/engine/components lib/engine/components/gnome-session



Author: jpuydt
Date: Thu Jan 29 14:40:17 2009
New Revision: 7619
URL: http://svn.gnome.org/viewvc/ekiga?rev=7619&view=rev

Log:
Added do-nothing component to handle the gnome session

Added:
   trunk/lib/engine/components/gnome-session/
   trunk/lib/engine/components/gnome-session/Makefile.am
   trunk/lib/engine/components/gnome-session/gnome-session-main.cpp
   trunk/lib/engine/components/gnome-session/gnome-session-main.h
Modified:
   trunk/configure.ac
   trunk/lib/engine/components/Makefile.am

Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac	(original)
+++ trunk/configure.ac	Thu Jan 29 14:40:17 2009
@@ -769,6 +769,7 @@
 lib/engine/components/gstreamer/Makefile
 lib/engine/components/kde/Makefile
 lib/engine/components/resource-list/Makefile
+lib/engine/components/gnome-session/Makefile
 lib/engine/components/xcap/Makefile
 lib/engine/components/opal/Makefile
 lib/engine/components/evolution/Makefile

Modified: trunk/lib/engine/components/Makefile.am
==============================================================================
--- trunk/lib/engine/components/Makefile.am	(original)
+++ trunk/lib/engine/components/Makefile.am	Thu Jan 29 14:40:17 2009
@@ -52,6 +52,7 @@
         null-audiooutput        \
         opal                    \
         ptlib                   \
+	gnome-session		\
 	$(AVAHI_DIR)            \
 	$(DBUS_DIR)             \
 	$(GSTREAMER_DIR)        \

Added: trunk/lib/engine/components/gnome-session/Makefile.am
==============================================================================
--- (empty file)
+++ trunk/lib/engine/components/gnome-session/Makefile.am	Thu Jan 29 14:40:17 2009
@@ -0,0 +1,16 @@
+noinst_LTLIBRARIES = libgmgnomesession.la
+
+gnomesession_dir = $(top_srcdir)/lib/engine/components/gnome-session
+
+AM_CPPFLAGS = $(SIGC_CFLAGS) $(GLIB_CFLAGS) $(XML_CFLAGS)
+
+INCLUDES = \
+	-I$(top_srcdir)/lib/engine/framework
+
+libgmgnomesession_la_SOURCES = \
+	$(gnomesession_dir)/gnome-session-main.h 	\
+	$(gnomesession_dir)/gnome-session-main.cpp
+
+#libgmgnomesession_la_LIBADD = nothing yet
+
+libgmgnomesession_la_LDFLAGS = -export-dynamic -no-undefined $(LDAP_LIBS) $(SIGC_LIBS) $(GLIB_LIBS) $(XML_LIBS)

Added: trunk/lib/engine/components/gnome-session/gnome-session-main.cpp
==============================================================================
--- (empty file)
+++ trunk/lib/engine/components/gnome-session/gnome-session-main.cpp	Thu Jan 29 14:40:17 2009
@@ -0,0 +1,68 @@
+
+/* Ekiga -- A VoIP and Video-Conferencing application
+ * Copyright (C) 2000-2009 Damien Sandras <dsandras seconix com>
+ *
+ * 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.
+ */
+
+
+/*
+ *                         gnomesession-main.cpp  -  description
+ *                         ------------------------------------------
+ *   begin                : written in 2009 by Julien Puydt
+ *   copyright            : (c) 2009 by Julien Puydt
+ *   description          : code to hook gnomesession into the main program
+ *
+ */
+
+#include "services.h"
+
+#include "gnome-session-main.h"
+
+struct GNOMESESSIONSpark: public Ekiga::Spark
+{
+  GNOMESESSIONSpark (): result(false)
+  {}
+
+  bool try_initialize_more (Ekiga::ServiceCore& /*core*/,
+			    int* /*argc*/,
+			    char** /*argv*/[])
+  {
+    return result;
+  }
+
+  Ekiga::Spark::state get_state () const
+  { return result?FULL:BLANK; }
+
+  const std::string get_name () const
+  { return "GNOMESESSION"; }
+
+  bool result;
+};
+
+void
+gnomesession_init (Ekiga::KickStart& kickstart)
+{
+  gmref_ptr<Ekiga::Spark> spark(new GNOMESESSIONSpark);
+  kickstart.add_spark (spark);
+}

Added: trunk/lib/engine/components/gnome-session/gnome-session-main.h
==============================================================================
--- (empty file)
+++ trunk/lib/engine/components/gnome-session/gnome-session-main.h	Thu Jan 29 14:40:17 2009
@@ -0,0 +1,45 @@
+
+/* Ekiga -- A VoIP and Video-Conferencing application
+ * Copyright (C) 2000-2009 Damien Sandras <dsandras seconix com>
+ *
+ * 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.
+ */
+
+
+/*
+ *                         gnomesession-main.h  -  description
+ *                         ------------------------------------------
+ *   begin                : written in 2009 by Julien Puydt
+ *   copyright            : (c) 2009 by Julien Puydt
+ *   description          : code to hook gnomesession into the main program
+ *
+ */
+
+#ifndef __GNOMESESSION_MAIN_H__
+#define __GNOMESESSION_MAIN_H__
+
+#include "kickstart.h"
+
+void gnomesession_init (Ekiga::KickStart& kickstart);
+
+#endif



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]