r2593 - in trunk/src/target/OM-2007.2/applications/openmoko-feedreader2: . src
zecke at sita.openmoko.org
zecke at sita.openmoko.org
Wed Aug 1 02:20:36 CEST 2007
Author: zecke
Date: 2007-08-01 02:20:35 +0200 (Wed, 01 Aug 2007)
New Revision: 2593
Added:
trunk/src/target/OM-2007.2/applications/openmoko-feedreader2/src/feed-configuration.h
trunk/src/target/OM-2007.2/applications/openmoko-feedreader2/src/feed-data.h
trunk/src/target/OM-2007.2/applications/openmoko-feedreader2/src/feed-item-view.h
Modified:
trunk/src/target/OM-2007.2/applications/openmoko-feedreader2/ChangeLog
trunk/src/target/OM-2007.2/applications/openmoko-feedreader2/src/moko_cache.h
Log:
2007-08-01 Holger Hans Peter Freyther <zecke at selfish.org>
Sketch some ideas how Configuration, the Feed Data (GtkListStore),
sorting and filtering them and displaying items could work.
* src/feed-configuration.h: Added.
* src/feed-data.h: Added.
* src/feed-item-view.h: Added.
* src/moko_cache.h: Fix cast
Modified: trunk/src/target/OM-2007.2/applications/openmoko-feedreader2/ChangeLog
===================================================================
--- trunk/src/target/OM-2007.2/applications/openmoko-feedreader2/ChangeLog 2007-07-31 23:45:21 UTC (rev 2592)
+++ trunk/src/target/OM-2007.2/applications/openmoko-feedreader2/ChangeLog 2007-08-01 00:20:35 UTC (rev 2593)
@@ -1,5 +1,15 @@
2007-08-01 Holger Hans Peter Freyther <zecke at selfish.org>
+ Sketch some ideas how Configuration, the Feed Data (GtkListStore),
+ sorting and filtering them and displaying items could work.
+
+ * src/feed-configuration.h: Added.
+ * src/feed-data.h: Added.
+ * src/feed-item-view.h: Added.
+ * src/moko_cache.h: Fix cast
+
+2007-08-01 Holger Hans Peter Freyther <zecke at selfish.org>
+
Janitor work and continue the renaming to feedreader2. Change README to document
what is in my mind in regard to implementing the new UI guidelines.
Added: trunk/src/target/OM-2007.2/applications/openmoko-feedreader2/src/feed-configuration.h
===================================================================
--- trunk/src/target/OM-2007.2/applications/openmoko-feedreader2/src/feed-configuration.h 2007-07-31 23:45:21 UTC (rev 2592)
+++ trunk/src/target/OM-2007.2/applications/openmoko-feedreader2/src/feed-configuration.h 2007-08-01 00:20:35 UTC (rev 2593)
@@ -0,0 +1,84 @@
+/*
+ * RSS Reader, a simple RSS reader
+ *
+ * Copyright (C) 2007 Holger Hans Peter Freyther
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included
+ * in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
+ * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ * OTHER DEALINGS IN THE SOFTWARE.
+ *
+ * Current Version: $Rev$ ($Date$) [$Author$]
+ */
+
+/*
+ * Configuration related classes including information of a Feed
+ * and the corresponding model.
+ */
+
+#ifndef RSS_READER_FEED_CONFIGURATION
+#define RSS_READER_FEED_CONFIGURATION
+
+#include <gtk/gtk.h>
+
+G_BEGIN_DECLS
+
+#define RSS_TYPE_FEED feed_get_type()
+#define RSS_TYPE_FEED_CONFIGURATION feed_configuration_get_type()
+#define RSS_FEED_CONFIGURATION(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), RSS_TYPE_FEED_CONFIGURATION, FeedConfiguration))
+#define RSS_FEED_CONFIGURATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), RSS_TYPE_FEED_CONFIGURATION, FeedConfigurationClass))
+#define RSS_IS_FEED_CONFIGURATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), RSS_TYPE_FEED_CONFIGURATION))
+#define RSS_IS_FEED_CONFIGURATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), RSS_TYPE_FEED_CONFIGURATION))
+#define RSS_FEED_CONFIGURATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), RSS_TYPE_FEED_CONFIGURATION, FeedConfigurationClass))
+
+typedef struct _Feed Feed;
+
+typedef struct _FeedConfiguration FeedConfiguration;
+typedef struct _FeedConfigurationClass FeedConfigurationClass;
+
+struct _Feed {
+ gchar* name;
+ gchar* url;
+ gchar* user_name;
+ gchar* password;
+ gint number_of_items_to_cache;
+};
+
+
+struct _FeedConfiguration {
+ GtkListStore parent;
+};
+
+struct _FeedConfigurationClass {
+ GtkListStoreClass parent;
+};
+
+
+GType feed_get_type (void);
+Feed* feed_copy (const Feed*);
+void feed_free (Feed*);
+
+
+GType feed_configuration_get_type (void);
+
+/*
+ * singleton
+ */
+GObject* feed_configuration_get_configuration (void),
+
+G_END_DECLS
+
+#endif
Property changes on: trunk/src/target/OM-2007.2/applications/openmoko-feedreader2/src/feed-configuration.h
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/src/target/OM-2007.2/applications/openmoko-feedreader2/src/feed-data.h
===================================================================
--- trunk/src/target/OM-2007.2/applications/openmoko-feedreader2/src/feed-data.h 2007-07-31 23:45:21 UTC (rev 2592)
+++ trunk/src/target/OM-2007.2/applications/openmoko-feedreader2/src/feed-data.h 2007-08-01 00:20:35 UTC (rev 2593)
@@ -0,0 +1,79 @@
+/*
+ * RSS Reader, a simple RSS reader
+ *
+ * Copyright (C) 2007 Holger Hans Peter Freyther
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included
+ * in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
+ * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ * OTHER DEALINGS IN THE SOFTWARE.
+ *
+ * Current Version: $Rev$ ($Date$) [$Author$]
+ */
+
+/*
+ * This class is responsible for all data related stuff including downloading
+ * and updating feeds, proving a GtkTreeModel to the outside world. Holding
+ * two other models for sorting and filtering.
+ */
+
+#ifndef RSS_READER_FEED_DATA_H
+#define RSS_READER_FEED_DATA_H
+
+#include "feed-configuration.h"
+
+G_BEGIN_DECLS
+
+#define RSS_TYPE_FEED_DATA feed_data_get_type()
+#define RSS_FEED_DATA(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), RSS_TYPE_FEED_DATA, FeedData))
+#define RSS_FEED_DATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), RSS_TYPE_FEED_DATA, FeedDataClass))
+#define RSS_IS_FEED_DATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), RSS_TYPE_FEED_DATA))
+#define RSS_IS_FEED_DATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), RSS_TYPE_FEED_DATA))
+#define RSS_FEED_DATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), RSS_TYPE_FEED_DATA, FeedDataClass))
+
+#define RSS_TYPE_FEED_FILTER feed_filter_get_type()
+#define RSS_TYPE_FEED_SORTER feed_sorter_get_type()
+
+typedef struct _FeedData FeedData;
+typedef struct _FeedDataClass FeedDataClass;
+
+struct _FeedData {
+ GtkListStore parent;
+};
+
+struct _FeedDataClass {
+ GtkListStoreClass parent;
+};
+
+
+GType feed_data_get_type (void);
+GObject* feed_data_get_instance (void);
+
+void feed_data_update_all (FeedData*);
+void feed_data_update (FeedData*, Feed*);
+
+
+GType feed_filter_get_type (void);
+GObject* feed_filter_new (const FeedFilter*);
+void feed_filter_reset (const FeedFilter*);
+void feed_filter_filter (const FeedFilter*, const Feed*);
+
+GType feed_sorter_get_type (void);
+GObject* feed_sorter_new (const FeedFilter*);
+
+G_END_DECLS
+
+#endif
Property changes on: trunk/src/target/OM-2007.2/applications/openmoko-feedreader2/src/feed-data.h
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/src/target/OM-2007.2/applications/openmoko-feedreader2/src/feed-item-view.h
===================================================================
--- trunk/src/target/OM-2007.2/applications/openmoko-feedreader2/src/feed-item-view.h 2007-07-31 23:45:21 UTC (rev 2592)
+++ trunk/src/target/OM-2007.2/applications/openmoko-feedreader2/src/feed-item-view.h 2007-08-01 00:20:35 UTC (rev 2593)
@@ -0,0 +1,67 @@
+/*
+ * RSS Reader, a simple RSS reader
+ *
+ * Copyright (C) 2007 Holger Hans Peter Freyther
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included
+ * in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
+ * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ * OTHER DEALINGS IN THE SOFTWARE.
+ *
+ * Current Version: $Rev$ ($Date$) [$Author$]
+ */
+
+/*
+ * Display one Feed Item/Entry.
+ *
+ * WebKitGtk will be used to display the entry. This is the whole view including
+ * a button for the next and previous item to allow fast switching of items.
+ *
+ * The views representing the filtered and sorted FeedData are expected to follow
+ * the next and previous request.
+ */
+
+
+#ifndef RSS_FEED_ITEM_VIEW_H
+#define RSS_FEED_ITEM_VIEW_H
+
+#include <gtk/gtk.h>
+
+
+GType feed_item_view_get_type (void);
+GtkWidget* feed_item_view_new (void);
+
+void feed_item_view_set_can_go_back (FeedItemView*, gboolean);
+void feed_item_view_set_can_go_forward (FeedItemView*, gboolean);
+
+/*
+ * display the text
+ */
+void feed_item_view_display (FeedItemView*, gchar*);
+
+/*
+ * highlight words from a search or such
+ */
+void feed_item_view_highlight (FeedItemView*, gchar*);
+
+/*
+ * The following signals are emitted:
+ * next
+ * prev
+ * visit_url G_TYPE_STRING
+ */
+
+#endif
Property changes on: trunk/src/target/OM-2007.2/applications/openmoko-feedreader2/src/feed-item-view.h
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: trunk/src/target/OM-2007.2/applications/openmoko-feedreader2/src/moko_cache.h
===================================================================
--- trunk/src/target/OM-2007.2/applications/openmoko-feedreader2/src/moko_cache.h 2007-07-31 23:45:21 UTC (rev 2592)
+++ trunk/src/target/OM-2007.2/applications/openmoko-feedreader2/src/moko_cache.h 2007-08-01 00:20:35 UTC (rev 2593)
@@ -37,7 +37,7 @@
#define MOKO_TYPE_CACHE (moko_cache_get_type())
#define MOKO_CACHE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), MOKO_TYPE_CACHE, MokoCache))
-#define MOKO_CACHE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((obj), MOKO_TYPE_CACHE, MokoCacheClass))
+#define MOKO_CACHE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), MOKO_TYPE_CACHE, MokoCacheClass))
#define MOKO_IS_CACHE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), MOKO_TYPE_CACHE))
#define MOKO_IS_CACHE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), MOKO_TYPE_CACHE))
#define MOKO_CACHE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), MOKO_TYPE_CACHE, MokoCacheClass))
More information about the commitlog
mailing list