[tracker: 12/18] libtracker-miner: Remove TrackerMinerWeb and helper objects
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker: 12/18] libtracker-miner: Remove TrackerMinerWeb and helper objects
- Date: Thu, 20 Feb 2014 12:09:41 +0000 (UTC)
commit 914c5e83802b3f681a3657b04d4be9dad9c311ef
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Jan 29 00:06:54 2014 +0100
libtracker-miner: Remove TrackerMinerWeb and helper objects
TrackerMinerWeb vmethods are very focused on the management of
credentials and capabilities, this is something that's been taken
over by gnome-online-accounts since this API was added, and the
lack of TrackerMinerWeb implementations in the wild seems to
hint it's not been as useful as when it was initially devised,
so farewell.
.../libtracker-miner/libtracker-miner-docs.sgml | 7 -
.../libtracker-miner/libtracker-miner-sections.txt | 66 ---
src/libtracker-miner/Makefile.am | 30 +-
src/libtracker-miner/tracker-miner-web.c | 578 --------------------
src/libtracker-miner/tracker-miner-web.h | 182 ------
src/libtracker-miner/tracker-miner.h | 3 -
src/libtracker-miner/tracker-miner.vapi | 52 --
.../tracker-network-provider-dummy.c | 168 ------
.../tracker-network-provider-network-manager.c | 331 -----------
src/libtracker-miner/tracker-network-provider.c | 151 -----
src/libtracker-miner/tracker-network-provider.h | 105 ----
.../tracker-password-provider-gnome.c | 306 -----------
.../tracker-password-provider-keyfile.c | 405 --------------
src/libtracker-miner/tracker-password-provider.c | 303 ----------
src/libtracker-miner/tracker-password-provider.h | 127 -----
tests/libtracker-miner/Makefile.am | 8 -
.../tracker-password-provider-test.c | 133 -----
17 files changed, 4 insertions(+), 2951 deletions(-)
---
diff --git a/docs/reference/libtracker-miner/libtracker-miner-docs.sgml
b/docs/reference/libtracker-miner/libtracker-miner-docs.sgml
index 769dbb1..f34662b 100644
--- a/docs/reference/libtracker-miner/libtracker-miner-docs.sgml
+++ b/docs/reference/libtracker-miner/libtracker-miner-docs.sgml
@@ -31,7 +31,6 @@
<chapter>
<title>Base abstract miner classes</title>
<xi:include href="xml/tracker-miner-object.xml"/>
- <xi:include href="xml/tracker-miner-web.xml"/>
<xi:include href="xml/tracker-miner-online.xml"/>
<xi:include href="xml/tracker-decorator.xml"/>
</chapter>
@@ -44,12 +43,6 @@
</chapter>
<chapter>
- <title>Base abstract providers for network/password/etc control</title>
- <xi:include href="xml/tracker-network-provider.xml"/>
- <xi:include href="xml/tracker-password-provider.xml"/>
- </chapter>
-
- <chapter>
<title>Utilities</title>
<xi:include href="xml/tracker-miner-enums.xml"/>
</chapter>
diff --git a/docs/reference/libtracker-miner/libtracker-miner-sections.txt
b/docs/reference/libtracker-miner/libtracker-miner-sections.txt
index f7b3b1c..d119a77 100644
--- a/docs/reference/libtracker-miner/libtracker-miner-sections.txt
+++ b/docs/reference/libtracker-miner/libtracker-miner-sections.txt
@@ -128,72 +128,6 @@ tracker_miner_get_type
</SECTION>
<SECTION>
-<FILE>tracker-miner-web</FILE>
-<TITLE>TrackerMinerWeb</TITLE>
-TRACKER_MINER_WEB_DBUS_INTERFACE
-TRACKER_MINER_WEB_ERROR
-TRACKER_MINER_WEB_ERROR_DOMAIN
-TrackerMinerWeb
-TrackerMinerWebClass
-TrackerMinerWebError
-tracker_miner_web_associate
-tracker_miner_web_authenticate
-tracker_miner_web_dissociate
-tracker_miner_web_error_quark
-tracker_miner_web_get_association_data
-<SUBSECTION Standard>
-TRACKER_IS_MINER_WEB
-TRACKER_IS_MINER_WEB_CLASS
-TRACKER_MINER_WEB
-TRACKER_MINER_WEB_CLASS
-TRACKER_MINER_WEB_GET_CLASS
-TRACKER_TYPE_MINER_WEB
-TrackerMinerWebPrivate
-tracker_miner_web_get_type
-</SECTION>
-
-<SECTION>
-<FILE>tracker-network-provider</FILE>
-<TITLE>TrackerNetworkProvider</TITLE>
-TrackerNetworkProvider
-TrackerNetworkProviderIface
-TrackerNetworkProviderStatus
-tracker_network_provider_get
-tracker_network_provider_get_name
-tracker_network_provider_get_status
-<SUBSECTION Standard>
-TRACKER_IS_NETWORK_PROVIDER
-TRACKER_NETWORK_PROVIDER
-TRACKER_NETWORK_PROVIDER_GET_INTERFACE
-TRACKER_TYPE_NETWORK_PROVIDER
-tracker_network_provider_get_type
-</SECTION>
-
-<SECTION>
-<FILE>tracker-password-provider</FILE>
-<TITLE>TrackerPasswordProvider</TITLE>
-TRACKER_PASSWORD_PROVIDER_ERROR
-TRACKER_PASSWORD_PROVIDER_ERROR_DOMAIN
-TrackerPasswordProvider
-TrackerPasswordProviderError
-TrackerPasswordProviderIface
-tracker_password_provider_error_quark
-tracker_password_provider_forget_password
-tracker_password_provider_get
-tracker_password_provider_get_name
-tracker_password_provider_get_password
-tracker_password_provider_lock_password
-tracker_password_provider_store_password
-tracker_password_provider_unlock_password
-<SUBSECTION Standard>
-TRACKER_IS_PASSWORD_PROVIDER
-TRACKER_PASSWORD_PROVIDER
-TRACKER_PASSWORD_PROVIDER_GET_INTERFACE
-TRACKER_TYPE_PASSWORD_PROVIDER
-tracker_password_provider_get_type
-</SECTION>
-
-<SECTION>
<FILE>tracker-miner-online</FILE>
<TITLE>TrackerMinerOnline</FILE>
TrackerMinerOnline
diff --git a/src/libtracker-miner/Makefile.am b/src/libtracker-miner/Makefile.am
index ef53fd1..4b5890e 100644
--- a/src/libtracker-miner/Makefile.am
+++ b/src/libtracker-miner/Makefile.am
@@ -68,22 +68,15 @@ miner_sources = \
tracker-miner-online.c \
tracker-miner-online.h \
tracker-miner-fs.c \
- tracker-miner-fs.h \
- tracker-miner-web.c \
- tracker-miner-web.h
-
+ tracker-miner-fs.h
libtracker_miner_private_la_SOURCES = \
$(private_sources)
libtracker_miner_ TRACKER_API_VERSION@_la_SOURCES = \
- $(network_provider_sources) \
- $(password_provider_sources) \
$(miner_sources) \
tracker-indexing-tree.c \
- tracker-indexing-tree.h \
- tracker-network-provider.c \
- tracker-password-provider.c
+ tracker-indexing-tree.h
libtracker_minerinclude_HEADERS = \
tracker-decorator.h \
@@ -95,10 +88,7 @@ libtracker_minerinclude_HEADERS = \
tracker-miner-enum-types.h \
tracker-miner-object.h \
tracker-miner-online.h \
- tracker-miner-fs.h \
- tracker-miner-web.h \
- tracker-network-provider.h \
- tracker-password-provider.h
+ tracker-miner-fs.h
libtracker_miner_ TRACKER_API_VERSION@_la_LDFLAGS = \
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
@@ -106,7 +96,7 @@ if !ENABLE_GCOV
# Using enable_gcov instead of have_unit_test because when doing a release
# we disable gcov but NOT the unit tests
libtracker_miner_ TRACKER_API_VERSION@_la_LDFLAGS += \
- -export-symbols-regex
'^tracker_(miner|password_provider|network_provider|indexing_tree|file_system|file_notifier|directory_flags|filter_type|filter_policy|network_type|decorator)_.*'
+ -export-symbols-regex
'^tracker_(miner|indexing_tree|file_system|file_notifier|directory_flags|filter_type|filter_policy|network_type|decorator)_.*'
endif
libtracker_miner_ TRACKER_API_VERSION@_la_LIBADD = \
@@ -117,18 +107,6 @@ libtracker_miner_ TRACKER_API_VERSION@_la_LIBADD = \
$(BUILD_LIBS) \
$(LIBTRACKER_MINER_LIBS)
-if HAVE_LIBSECRET
-password_provider_sources = tracker-password-provider-gnome.c
-else
-password_provider_sources = tracker-password-provider-keyfile.c
-endif
-
-if HAVE_NETWORK_MANAGER
-network_provider_sources = tracker-network-provider-network-manager.c
-else
-network_provider_sources = tracker-network-provider-dummy.c
-endif
-
# Vala bindings
vapidir = $(datadir)/vala/vapi
vapi_DATA = \
diff --git a/src/libtracker-miner/tracker-miner.h b/src/libtracker-miner/tracker-miner.h
index cd6acc1..9c5ec64 100644
--- a/src/libtracker-miner/tracker-miner.h
+++ b/src/libtracker-miner/tracker-miner.h
@@ -24,12 +24,9 @@
#include <libtracker-miner/tracker-decorator.h>
#include <libtracker-miner/tracker-decorator-fs.h>
-#include <libtracker-miner/tracker-network-provider.h>
-#include <libtracker-miner/tracker-password-provider.h>
#include <libtracker-miner/tracker-miner-object.h>
#include <libtracker-miner/tracker-miner-online.h>
#include <libtracker-miner/tracker-miner-fs.h>
-#include <libtracker-miner/tracker-miner-web.h>
#include <libtracker-miner/tracker-miner-enums.h>
#include <libtracker-miner/tracker-miner-enum-types.h>
#include <libtracker-miner/tracker-indexing-tree.h>
diff --git a/src/libtracker-miner/tracker-miner.vapi b/src/libtracker-miner/tracker-miner.vapi
index 163e4e7..34ad990 100644
--- a/src/libtracker-miner/tracker-miner.vapi
+++ b/src/libtracker-miner/tracker-miner.vapi
@@ -76,56 +76,4 @@ namespace Tracker {
3G,
LAN
}
- [CCode (cheader_filename = "libtracker-miner/tracker-miner.h")]
- public class MinerWeb : Tracker.Miner, GLib.Initable {
- [CCode (has_construct_function = false)]
- public MinerWeb ();
- [NoAccessorMethod]
- public bool associated { get; set; }
- public virtual void associate (GLib.HashTable association_data) throws Tracker.MinerWebError;
- public virtual void authenticate () throws Tracker.MinerWebError;
- public virtual void dissociate () throws Tracker.MinerWebError;
- public static GLib.Quark error_quark ();
- public virtual GLib.HashTable get_association_data () throws Tracker.MinerWebError;
- }
- [CCode (cheader_filename = "libtracker-miner/tracker-miner.h")]
- public interface PasswordProvider : GLib.Object {
- public void forget_password (string service) throws GLib.Error;
- public static unowned Tracker.PasswordProvider @get ();
- public string get_name ();
- public string get_password (string service, out string username) throws GLib.Error;
- public void store_password (string service, string description, string username, string
password) throws GLib.Error;
- }
- [CCode (cheader_filename = "libtracker-miner/tracker-miner.h")]
- public interface NetworkProvider : GLib.Object {
- public string get_name ();
- public NetworkProviderStatus get_status ();
- public signal void status_changed (NetworkProviderStatus status);
- public static unowned Tracker.NetworkProvider @get ();
- }
- [CCode (cprefix = "TRACKER_NETWORK_PROVIDER_", cheader_filename = "libtracker-miner/tracker-miner.h")]
- public enum NetworkProviderStatus {
- DISCONNECTED,
- UNKNOWN,
- GPRS,
- EDGE,
- @3G,
- LAN
- }
- [CCode (cprefix = "TRACKER_MINER_WEB_ERROR_", cheader_filename = "libtracker-miner/tracker-miner.h")]
- public errordomain MinerWebError {
- WRONG_CREDENTIALS,
- TOKEN_EXPIRED,
- NO_CREDENTIALS,
- KEYRING,
- SERVICE,
- TRACKER,
- }
- [CCode (cprefix = "TRACKER_PASSWORD_PROVIDER_ERROR_", cheader_filename =
"libtracker-miner/tracker-miner.h")]
- public errordomain PasswordProviderError {
- SERVICE,
- NOTFOUND,
- }
- [CCode (cheader_filename = "libtracker-miner/tracker-miner.h")]
- public const string MINER_WEB_DBUS_INTERFACE;
}
diff --git a/tests/libtracker-miner/Makefile.am b/tests/libtracker-miner/Makefile.am
index 3ccb267..5094d0f 100644
--- a/tests/libtracker-miner/Makefile.am
+++ b/tests/libtracker-miner/Makefile.am
@@ -18,7 +18,6 @@ TEST_PROGS += \
tracker-crawler-test \
tracker-file-notifier-test \
tracker-file-system-test \
- tracker-password-provider-test \
tracker-thumbnailer-test \
tracker-monitor-test \
tracker-priority-queue-test \
@@ -68,13 +67,6 @@ tracker_crawler_test_SOURCES = \
$(libtracker_miner_crawler_headers) \
tracker-crawler-test.c
-tracker_password_provider_test_SOURCES = \
- tracker-password-provider-test.c
-
-tracker_password_provider_test_LDADD = \
- libtracker-miner-tests.la \
- $(LDADD)
-
tracker_thumbnailer_test_SOURCES = \
tracker-thumbnailer-test.c \
thumbnailer-mock.c \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]