[tracker/miner-web: 3/17] PasswordProvider : add a dummy implementation
- From: Adrien Bustany <abustany src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker/miner-web: 3/17] PasswordProvider : add a dummy implementation
- Date: Fri, 6 Nov 2009 13:13:23 +0000 (UTC)
commit 719608863174f46105b0ca6f19387cad1522e06b
Author: Adrien Bustany <madcat mymadcat com>
Date: Tue Nov 3 13:42:41 2009 -0300
PasswordProvider : add a dummy implementation
src/libtracker-miner/Makefile.am | 3 ++-
src/libtracker-miner/dummy-password-provider.vala | 18 ++++++++++++++++++
2 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-miner/Makefile.am b/src/libtracker-miner/Makefile.am
index 55cf081..2487536 100644
--- a/src/libtracker-miner/Makefile.am
+++ b/src/libtracker-miner/Makefile.am
@@ -29,7 +29,8 @@ libtracker_miner_LTLIBRARIES = libtracker-miner.la
libtracker_miner_la_VALASOURCES= \
tracker-miner-web.vala \
password-provider.vala \
- gnome-password-provider.vala
+ gnome-password-provider.vala \
+ dummy-password-provider.vala
libtracker_miner_la_SOURCES = \
tracker-crawler.c \
diff --git a/src/libtracker-miner/dummy-password-provider.vala b/src/libtracker-miner/dummy-password-provider.vala
new file mode 100644
index 0000000..e2bcac6
--- /dev/null
+++ b/src/libtracker-miner/dummy-password-provider.vala
@@ -0,0 +1,18 @@
+namespace Tracker {
+ class DummyPasswordProvider : Tracker.PasswordProvider, GLib.Object {
+
+ public void store (string service, string description, string username, string password) throws PasswordProviderError
+ {
+ }
+
+ public new string get (string service, out string? username) throws PasswordProviderError
+ {
+ throw new PasswordProviderError.NOTFOUND (_("No results found"));
+ }
+
+ public void forget (string service, string username) throws PasswordProviderError
+ {
+ }
+
+ }
+} // Namespace Tracker
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]