summaryrefslogtreecommitdiff
path: root/frontend/delta/js/Clipperz/PM/Proxy/Proxy.Offline.js
Unidiff
Diffstat (limited to 'frontend/delta/js/Clipperz/PM/Proxy/Proxy.Offline.js') (more/less context) (ignore whitespace changes)
-rw-r--r--frontend/delta/js/Clipperz/PM/Proxy/Proxy.Offline.js72
1 files changed, 72 insertions, 0 deletions
diff --git a/frontend/delta/js/Clipperz/PM/Proxy/Proxy.Offline.js b/frontend/delta/js/Clipperz/PM/Proxy/Proxy.Offline.js
new file mode 100644
index 0000000..6d6ee1e
--- a/dev/null
+++ b/frontend/delta/js/Clipperz/PM/Proxy/Proxy.Offline.js
@@ -0,0 +1,72 @@
1/*
2
3Copyright 2008-2013 Clipperz Srl
4
5This file is part of Clipperz, the online password manager.
6For further information about its features and functionalities please
7refer to http://www.clipperz.com.
8
9* Clipperz is free software: you can redistribute it and/or modify it
10 under the terms of the GNU Affero General Public License as published
11 by the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
13
14* Clipperz is distributed in the hope that it will be useful, but
15 WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17 See the GNU Affero General Public License for more details.
18
19* You should have received a copy of the GNU Affero General Public
20 License along with Clipperz. If not, see http://www.gnu.org/licenses/.
21
22*/
23
24if (typeof(Clipperz) == 'undefined') { Clipperz = {}; }
25if (typeof(Clipperz.PM) == 'undefined') { Clipperz.PM = {}; }
26
27//=============================================================================
28
29Clipperz.PM.Proxy.Offline = function(args) {
30 args = args || {};
31
32 Clipperz.PM.Proxy.Offline.superclass.constructor.call(this, args);
33
34 this._dataStore = args.dataStore || new Clipperz.PM.Proxy.Offline.DataStore(args);
35
36 return this;
37}
38
39Clipperz.Base.extend(Clipperz.PM.Proxy.Offline, Clipperz.PM.Proxy, {
40
41 'toString': function () {
42 return "Clipperz.PM.Proxy.Offline";
43 },
44
45 //-------------------------------------------------------------------------
46
47 'dataStore': function () {
48 return this._dataStore;
49 },
50
51 //-------------------------------------------------------------------------
52
53 '_sendMessage': function(aFunctionName, aVersion, someParameters) {
54 return this.dataStore().processMessage(aFunctionName, someParameters);
55 },
56
57 //-------------------------------------------------------------------------
58
59 'isReadOnly': function () {
60 return this.dataStore().isReadOnly();
61 },
62
63 'canRegisterNewUsers': function () {
64 return this.dataStore().canRegisterNewUsers();
65 },
66
67 //-------------------------------------------------------------------------
68
69 __syntaxFix__: "syntax fix"
70
71});
72