summaryrefslogtreecommitdiff
path: root/kcm
diff options
context:
space:
mode:
authoronestone <onestone>2006-12-18 16:10:53 +0000
committeronestone <onestone>2006-12-18 16:10:53 +0000
commit37519d57fb36374e0fe4b3b0dde072283be76e15 (patch)
tree3272c249c0e26dbdc5a95920e55944a5d2adfe0f /kcm
parent6b3607d9d78a74bcc1eaf98b033e7127cedb7f54 (diff)
downloadaquamarine-37519d57fb36374e0fe4b3b0dde072283be76e15.tar.gz
aquamarine-37519d57fb36374e0fe4b3b0dde072283be76e15.tar.bz2
aquamarine: fixed some build system issues
settings-backend: included new libberylsettings changes kcm: added a beryl kcontrol module (currently empty)
Diffstat (limited to 'kcm')
-rw-r--r--kcm/Makefile.am13
-rw-r--r--kcm/main.cpp63
-rw-r--r--kcm/main.h46
3 files changed, 122 insertions, 0 deletions
diff --git a/kcm/Makefile.am b/kcm/Makefile.am
new file mode 100644
index 0000000..92d7acc
--- /dev/null
+++ b/kcm/Makefile.am
@@ -0,0 +1,13 @@
+INCLUDES = -I$(srcdir)/lib $(all_includes)
+
+kcm_beryl_la_LDFLAGS = -module -avoid-version -no-undefined $(all_libraries)
+kcm_beryl_la_LIBADD = $(BERYLSETTINGS_LIBS) $(LIB_KDECORE) $(LIB_KDEUI)
+kcm_beryl_la_SOURCES = main.cpp
+
+KDE_CXXFLAGS = $(BERYLSETTINGS_CFLAGS)
+
+kde_module_LTLIBRARIES = kcm_beryl.la
+
+METASOURCES = AUTO
+
+xdg_apps_DATA = beryl.desktop
diff --git a/kcm/main.cpp b/kcm/main.cpp
new file mode 100644
index 0000000..4157bec
--- /dev/null
+++ b/kcm/main.cpp
@@ -0,0 +1,63 @@
+/*
+ * KControl module for Beryl and Aquamarine
+ *
+ * Copyright (c) 2006 Dennis Kasprzyk <onestone@beryl-project.org>
+ *
+ * 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 Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+#include <kapplication.h>
+#include <kaboutdata.h>
+#include <kconfig.h>
+#include <kdebug.h>
+#include <dcopclient.h>
+#include <kgenericfactory.h>
+
+#include "main.h"
+
+typedef KGenericFactory<KCMBeryl, QWidget> KCMBerylFactory;
+K_EXPORT_COMPONENT_FACTORY( kcm_beryl, KCMBerylFactory("kcmberyl"))
+
+KCMBeryl::~KCMBeryl( )
+{
+ printf("Unload\n");
+}
+
+KCMBeryl::KCMBeryl(QWidget *parent, const char *name, const QStringList &)
+ : KCModule(KCMBerylFactory::instance(), parent, name)
+{
+ KAboutData *about =
+ new KAboutData(I18N_NOOP("kcmberyl"), I18N_NOOP("KDE Beryl/Aquamarine Control Module"),
+ 0, 0, KAboutData::License_GPL,
+ I18N_NOOP("(c) 2006 Dennis Kasprzyk"));
+
+ about->addAuthor("Dennis Kasprzyk", 0, "onestone@beryl-project.org");
+
+ setAboutData( about );
+}
+
+void KCMBeryl::load()
+{
+}
+
+void KCMBeryl::save()
+{
+}
+
+void KCMBeryl::defaults()
+{
+}
+
diff --git a/kcm/main.h b/kcm/main.h
new file mode 100644
index 0000000..df1120c
--- /dev/null
+++ b/kcm/main.h
@@ -0,0 +1,46 @@
+/*
+ * KControl module for Beryl and Aquamarine
+ *
+ * Copyright (c) 2006 Dennis Kasprzyk <onestone@beryl-project.org>
+ *
+ * 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 Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+#ifndef KCM_BERYL_MAIN_H
+#define KCM_BERYL_MAIN_H
+
+#include <kcmodule.h>
+
+
+
+class KCMBeryl: public KCModule
+{
+ Q_OBJECT
+
+public:
+ KCMBeryl(QWidget *parent, const char *name, const QStringList &);
+ ~KCMBeryl();
+
+ virtual void load();
+ virtual void save();
+ virtual void defaults();
+
+private:
+
+};
+
+
+#endif