Merge lp:~manishsinha/zeitgeist-datasources/add-ff-36-support-bug-775817 into lp:zeitgeist-datasources/0.8
- add-ff-36-support-bug-775817
- Merge into trunk
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 134 | ||||
Proposed branch: | lp:~manishsinha/zeitgeist-datasources/add-ff-36-support-bug-775817 | ||||
Merge into: | lp:zeitgeist-datasources/0.8 | ||||
Diff against target: |
2623 lines (+1584/-749) 41 files modified
configure.ac (+35/-13) firefox-36-libzg/Makefile.am (+15/-0) firefox-36-libzg/README (+43/-0) firefox-36-libzg/extension/Makefile.am (+42/-0) firefox-36-libzg/extension/chrome.manifest (+2/-0) firefox-36-libzg/extension/chrome/content/zeitgeist.xul (+164/-0) firefox-36-libzg/extension/components/Makefile.am (+60/-0) firefox-36-libzg/extension/components/ZeitgeistComponent.cpp (+39/-0) firefox-36-libzg/extension/components/ZeitgeistModule.cpp (+86/-0) firefox-36-libzg/extension/components/zeitgeist.idl (+30/-0) firefox-36-libzg/extension/components/zeitgeistextend.h (+45/-0) firefox-36-libzg/extension/defaults/preferences/zeitgeist.js (+2/-0) firefox-36-libzg/extension/install.rdf (+28/-0) firefox-36-libzg/extension/license.txt (+166/-0) firefox-40-libzg/Makefile.am (+16/-0) firefox-40-libzg/README (+43/-0) firefox-40-libzg/extension/Makefile.am (+42/-0) firefox-40-libzg/extension/chrome.manifest (+4/-0) firefox-40-libzg/extension/chrome/content/zeitgeist.xul (+164/-0) firefox-40-libzg/extension/components/Makefile.am (+60/-0) firefox-40-libzg/extension/components/ZeitgeistComponent.cpp (+50/-0) firefox-40-libzg/extension/components/ZeitgeistModule.cpp (+86/-0) firefox-40-libzg/extension/components/zeitgeist.h (+91/-0) firefox-40-libzg/extension/components/zeitgeist.idl (+30/-0) firefox-40-libzg/extension/components/zeitgeistextend.h (+45/-0) firefox-40-libzg/extension/defaults/preferences/zeitgeist.js (+2/-0) firefox-40-libzg/extension/install.rdf (+28/-0) firefox-40-libzg/extension/license.txt (+166/-0) firefox-libzg/Makefile.am (+0/-16) firefox-libzg/README (+0/-43) firefox-libzg/extension/Makefile.am (+0/-42) firefox-libzg/extension/chrome.manifest (+0/-4) firefox-libzg/extension/chrome/content/zeitgeist.xul (+0/-164) firefox-libzg/extension/components/Makefile.am (+0/-60) firefox-libzg/extension/components/ZeitgeistComponent.cpp (+0/-50) firefox-libzg/extension/components/ZeitgeistModule.cpp (+0/-86) firefox-libzg/extension/components/zeitgeist.idl (+0/-30) firefox-libzg/extension/components/zeitgeistextend.h (+0/-45) firefox-libzg/extension/defaults/preferences/zeitgeist.js (+0/-2) firefox-libzg/extension/install.rdf (+0/-28) firefox-libzg/extension/license.txt (+0/-166) |
||||
To merge this branch: | bzr merge lp:~manishsinha/zeitgeist-datasources/add-ff-36-support-bug-775817 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Artem (community) | Approve | ||
Zeitgeist Data-Sources Team | Pending | ||
Review via email: mp+59704@code.launchpad.net |
Commit message
Description of the change
Added support for Firefox 3.6
The firefox 3.6 dataprovider is given the name firefox-36-libzg
and it needs xulrunner-1.92-dev to build
Steps
./autogen.sh
make
then test local install by
$ cd firefox-36-libzg
$ make local-install
Open firefox 3.6 to test
if works then
$ make local-uninstall
Then check system-wide install
$ sudo make install
Then open browser and check if it works. If it works then
$ sudo make uninstall
- 133. By Manish Sinha (मनीष सिन्हा)
-
Bumped the version number of Firefox 3.6 dataprovider from 0.1 to 0.3
Artem (leipreachan) wrote : | # |
Artem (leipreachan) wrote : | # |
I've changed
PKG_CHECK_
to
PKG_CHECK_
now make fails with the following listing
make[4]: Entering directory `/home/
CXX libzeitgeist_
cc1plus: fatal error: xpcom-config.h: No such file or directory
compilation terminated.
thanks
- 134. By Manish Sinha (मनीष सिन्हा)
-
Fixed the macro which detects the presence of xul >= 1.9.2 and xul < 2.0
Manish Sinha (मनीष सिन्हा) (manishsinha) wrote : | # |
I hope this would fix the issues.
Manish Sinha (मनीष सिन्हा) (manishsinha) wrote : | # |
I tested it on my desktop and laptop. Works on both of them
Artem (leipreachan) wrote : | # |
I tested against 3.6.17.
Everything is okay.
Thanks
Preview Diff
1 | === modified file 'configure.ac' | |||
2 | --- configure.ac 2011-05-02 18:28:16 +0000 | |||
3 | +++ configure.ac 2011-05-03 18:52:25 +0000 | |||
4 | @@ -65,7 +65,7 @@ | |||
5 | 65 | AC_MSG_NOTICE([Requested to enable all plugins: ${all_plugins}]) | 65 | AC_MSG_NOTICE([Requested to enable all plugins: ${all_plugins}]) |
6 | 66 | 66 | ||
7 | 67 | # The full list of plugins | 67 | # The full list of plugins |
9 | 68 | allowed_plugins="bzr chrome eog geany vim emacs tomboy telepathy xchat firefox-libzg" | 68 | allowed_plugins="bzr chrome eog geany vim emacs tomboy telepathy xchat firefox-40-libzg firefox-36-libzg" |
10 | 69 | # currently disabled = "epiphany" | 69 | # currently disabled = "epiphany" |
11 | 70 | 70 | ||
12 | 71 | # npapi-plugin has a template Makefile.am, but don't use it directly | 71 | # npapi-plugin has a template Makefile.am, but don't use it directly |
13 | @@ -107,7 +107,7 @@ | |||
14 | 107 | # not supported atm | 107 | # not supported atm |
15 | 108 | continue | 108 | continue |
16 | 109 | ;; | 109 | ;; |
18 | 110 | firefox-libzg) | 110 | firefox-40-libzg) |
19 | 111 | if test "${HAVE_LIBZG}" != "yes" ; then | 111 | if test "${HAVE_LIBZG}" != "yes" ; then |
20 | 112 | plugin_error_or_ignore "libzeitgeist not found" | 112 | plugin_error_or_ignore "libzeitgeist not found" |
21 | 113 | continue | 113 | continue |
22 | @@ -115,7 +115,7 @@ | |||
23 | 115 | PKG_CHECK_MODULES(LIBXUL_2_0, libxul >= 2.0, | 115 | PKG_CHECK_MODULES(LIBXUL_2_0, libxul >= 2.0, |
24 | 116 | [HAVE_LIBXUL=yes], [HAVE_LIBXUL=no]) | 116 | [HAVE_LIBXUL=yes], [HAVE_LIBXUL=no]) |
25 | 117 | if test "${HAVE_LIBXUL}" != "yes" ; then | 117 | if test "${HAVE_LIBXUL}" != "yes" ; then |
27 | 118 | plugin_error_or_ignore "libxul 2.0+ not found" | 118 | plugin_error_or_ignore "libxul 2.0+ for firefox-40-libzg not found" |
28 | 119 | continue | 119 | continue |
29 | 120 | fi | 120 | fi |
30 | 121 | XPIDL_BIN="`$PKG_CONFIG --variable=sdkdir libxul`/bin/xpidl" | 121 | XPIDL_BIN="`$PKG_CONFIG --variable=sdkdir libxul`/bin/xpidl" |
31 | @@ -124,15 +124,31 @@ | |||
32 | 124 | AC_SUBST(XUL_IDLDIR) | 124 | AC_SUBST(XUL_IDLDIR) |
33 | 125 | AC_DEFINE(MOZ_NO_MOZALLOC, ["For Mozilla Firefox 4"]) | 125 | AC_DEFINE(MOZ_NO_MOZALLOC, ["For Mozilla Firefox 4"]) |
34 | 126 | ;; | 126 | ;; |
35 | 127 | firefox-36-libzg) | ||
36 | 128 | if test "${HAVE_LIBZG}" != "yes" ; then | ||
37 | 129 | plugin_error_or_ignore "libzeitgeist not found" | ||
38 | 130 | continue | ||
39 | 131 | fi | ||
40 | 132 | PKG_CHECK_MODULES(LIBXUL_1_9_2, [libxul >= 1.9.2 libxul < 2.0], | ||
41 | 133 | [HAVE_LIBXUL=yes], [HAVE_LIBXUL=no]) | ||
42 | 134 | if test "${HAVE_LIBXUL}" != "yes" ; then | ||
43 | 135 | plugin_error_or_ignore "libxul 1.92 for firefox-36-libzg not found" | ||
44 | 136 | continue | ||
45 | 137 | fi | ||
46 | 138 | XPIDL_BIN="`$PKG_CONFIG --variable=sdkdir libxul`/bin/xpidl" | ||
47 | 139 | AC_SUBST(XPIDL_BIN) | ||
48 | 140 | XUL_IDLDIR="`$PKG_CONFIG --variable=idldir libxul`" | ||
49 | 141 | AC_SUBST(XUL_IDLDIR) | ||
50 | 142 | ;; | ||
51 | 127 | geany) | 143 | geany) |
52 | 128 | if test "${HAVE_LIBZG}" != "yes" ; then | 144 | if test "${HAVE_LIBZG}" != "yes" ; then |
53 | 129 | plugin_error_or_ignore "libzeitgeist not found" | 145 | plugin_error_or_ignore "libzeitgeist not found" |
54 | 130 | continue | 146 | continue |
55 | 131 | fi | 147 | fi |
57 | 132 | if test "x$HAVE_GTK" = "xno"; then | 148 | if test "x$HAVE_GTK" = "xno"; then |
58 | 133 | plugin_error_or_ignore "You need to install gtk development headers" | 149 | plugin_error_or_ignore "You need to install gtk development headers" |
59 | 134 | continue | 150 | continue |
61 | 135 | fi | 151 | fi |
62 | 136 | PKG_CHECK_MODULES(GEANY, geany, | 152 | PKG_CHECK_MODULES(GEANY, geany, |
63 | 137 | [HAVE_GEANY=yes], [HAVE_GEANY=no]) | 153 | [HAVE_GEANY=yes], [HAVE_GEANY=no]) |
64 | 138 | if test "${HAVE_GEANY}" != "yes" ; then | 154 | if test "${HAVE_GEANY}" != "yes" ; then |
65 | @@ -140,8 +156,6 @@ | |||
66 | 140 | continue | 156 | continue |
67 | 141 | fi | 157 | fi |
68 | 142 | ;; | 158 | ;; |
69 | 143 | gedit) | ||
70 | 144 | ;; | ||
71 | 145 | npapi-plugin) | 159 | npapi-plugin) |
72 | 146 | if test "${HAVE_LIBZG}" != "yes" ; then | 160 | if test "${HAVE_LIBZG}" != "yes" ; then |
73 | 147 | plugin_error_or_ignore "libzeitgeist not found" | 161 | plugin_error_or_ignore "libzeitgeist not found" |
74 | @@ -155,7 +169,7 @@ | |||
75 | 155 | PKG_CHECK_MODULES(ZEITGEIST_SHARP, zeitgeist-sharp, | 169 | PKG_CHECK_MODULES(ZEITGEIST_SHARP, zeitgeist-sharp, |
76 | 156 | ENABLE_ZEITGEIST_SHARP=yes, ENABLE_ZEITGEIST_SHARP=no) | 170 | ENABLE_ZEITGEIST_SHARP=yes, ENABLE_ZEITGEIST_SHARP=no) |
77 | 157 | PKG_CHECK_MODULES(TOMBOY_ADDINS, tomboy-addins, | 171 | PKG_CHECK_MODULES(TOMBOY_ADDINS, tomboy-addins, |
79 | 158 | HAS_TOMBOY_ADDINS=yes, HAS_TOMBOY_ADDINS=no) | 172 | HAS_TOMBOY_ADDINS=yes, HAS_TOMBOY_ADDINS=no) |
80 | 159 | PKG_CHECK_MODULES(GTK_SHARP, gtk-sharp-2.0, | 173 | PKG_CHECK_MODULES(GTK_SHARP, gtk-sharp-2.0, |
81 | 160 | HAS_GTK_SHARP=yes, GTK_SHARP=no) | 174 | HAS_GTK_SHARP=yes, GTK_SHARP=no) |
82 | 161 | if test "${ENABLE_ZEITGEIST_SHARP}" = "no" ; then | 175 | if test "${ENABLE_ZEITGEIST_SHARP}" = "no" ; then |
83 | @@ -243,11 +257,19 @@ | |||
84 | 243 | AC_CONFIG_FILES([eog/Makefile]) | 257 | AC_CONFIG_FILES([eog/Makefile]) |
85 | 244 | continue 2 | 258 | continue 2 |
86 | 245 | ;; | 259 | ;; |
92 | 246 | firefox-libzg) | 260 | firefox-40-libzg) |
93 | 247 | AC_CONFIG_FILES([ | 261 | AC_CONFIG_FILES([ |
94 | 248 | firefox-libzg/Makefile | 262 | firefox-40-libzg/Makefile |
95 | 249 | firefox-libzg/extension/Makefile | 263 | firefox-40-libzg/extension/Makefile |
96 | 250 | firefox-libzg/extension/components/Makefile | 264 | firefox-40-libzg/extension/components/Makefile |
97 | 265 | ]) | ||
98 | 266 | continue 2 | ||
99 | 267 | ;; | ||
100 | 268 | firefox-36-libzg) | ||
101 | 269 | AC_CONFIG_FILES([ | ||
102 | 270 | firefox-36-libzg/Makefile | ||
103 | 271 | firefox-36-libzg/extension/Makefile | ||
104 | 272 | firefox-36-libzg/extension/components/Makefile | ||
105 | 251 | ]) | 273 | ]) |
106 | 252 | continue 2 | 274 | continue 2 |
107 | 253 | ;; | 275 | ;; |
108 | 254 | 276 | ||
109 | === added directory 'firefox-36-libzg' | |||
110 | === added file 'firefox-36-libzg/Makefile.am' | |||
111 | --- firefox-36-libzg/Makefile.am 1970-01-01 00:00:00 +0000 | |||
112 | +++ firefox-36-libzg/Makefile.am 2011-05-03 18:52:25 +0000 | |||
113 | @@ -0,0 +1,15 @@ | |||
114 | 1 | SUBDIRS = extension | ||
115 | 2 | |||
116 | 3 | # identifier for the FF profile in which 'make install' installs this extension | ||
117 | 4 | TARGET_PROFILE = *default* | ||
118 | 5 | |||
119 | 6 | local-install: all | ||
120 | 7 | $(MAKE) -C extension $@ | ||
121 | 8 | cd ~/.mozilla/firefox/$(TARGET_PROFILE)/ && mkdir -p extensions | ||
122 | 9 | cp ZeitgeistDataprovider.xpi ~/.mozilla/firefox/$(TARGET_PROFILE)/extensions | ||
123 | 10 | |||
124 | 11 | local-uninstall: | ||
125 | 12 | $(MAKE) -C extension $@ | ||
126 | 13 | -rm -rf ~/.mozilla/firefox/$(TARGET_PROFILE)/extensions/xpcom_firefox\@zeitgeist-project.com | ||
127 | 14 | -rm -rf ~/.mozilla/firefox/$(TARGET_PROFILE)/extensions/ZeitgeistDataprovider.xpi | ||
128 | 15 | |||
129 | 0 | 16 | ||
130 | === added file 'firefox-36-libzg/README' | |||
131 | --- firefox-36-libzg/README 1970-01-01 00:00:00 +0000 | |||
132 | +++ firefox-36-libzg/README 2011-05-03 18:52:25 +0000 | |||
133 | @@ -0,0 +1,43 @@ | |||
134 | 1 | Links | ||
135 | 2 | ===== | ||
136 | 3 | |||
137 | 4 | Code is based on: | ||
138 | 5 | http://www.ibm.com/developerworks/opensource/library/os-xpcomfirefox/index.html | ||
139 | 6 | |||
140 | 7 | Other useful ressources: | ||
141 | 8 | https://developer.mozilla.org/en/XPCOM_Glue | ||
142 | 9 | http://www.iosart.com/firefox/xpcom/ | ||
143 | 10 | http://www.ibm.com/developerworks/webservices/library/co-xpcom5.html (with link to the complete series) | ||
144 | 11 | http://blog.lazytech.info/2007/05/26/xpcom-javascript-function-call/ (about implementing JS callbacks) | ||
145 | 12 | |||
146 | 13 | |||
147 | 14 | Unknown symbols in ubuntu lucid | ||
148 | 15 | =============================== | ||
149 | 16 | |||
150 | 17 | On ubuntu lucid `ldd -r *.so` shows libxpcom as unknown symbol, to fix this create | ||
151 | 18 | |||
152 | 19 | /etc/ld.so.conf.d/libxpcom.conf | ||
153 | 20 | |||
154 | 21 | with this content: | ||
155 | 22 | |||
156 | 23 | # for xpcom | ||
157 | 24 | /usr/lib/xulrunner-1.9.2.3 | ||
158 | 25 | |||
159 | 26 | |||
160 | 27 | And rebuild the cache | ||
161 | 28 | $ sudo ldconfig | ||
162 | 29 | |||
163 | 30 | You have to do the same for libzeitgeist! | ||
164 | 31 | |||
165 | 32 | |||
166 | 33 | Component UUID | ||
167 | 34 | ============== | ||
168 | 35 | |||
169 | 36 | the uuid for the component is | ||
170 | 37 | d879c08c-517d-44f0-83e1-3ef75a527ddf | ||
171 | 38 | |||
172 | 39 | |||
173 | 40 | TODO | ||
174 | 41 | ==== | ||
175 | 42 | * add JS callback to .insert() so user can be notified of issues while inserting event | ||
176 | 43 | * add events for downloads, see https://developer.mozilla.org/en/nsIDownloadProgressListener | ||
177 | 0 | 44 | ||
178 | === added directory 'firefox-36-libzg/extension' | |||
179 | === added file 'firefox-36-libzg/extension/Makefile.am' | |||
180 | --- firefox-36-libzg/extension/Makefile.am 1970-01-01 00:00:00 +0000 | |||
181 | +++ firefox-36-libzg/extension/Makefile.am 2011-05-03 18:52:25 +0000 | |||
182 | @@ -0,0 +1,42 @@ | |||
183 | 1 | SUBDIRS = components | ||
184 | 2 | |||
185 | 3 | extensiondir = $(datadir)/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384} | ||
186 | 4 | EXTENSIONS_SYMLINK = $(extensiondir)/xpcom_firefox@zeitgeist-project.com | ||
187 | 5 | |||
188 | 6 | xul_extdir = $(datadir)/xul-ext-zeitgeist | ||
189 | 7 | dist_xul_ext_DATA = \ | ||
190 | 8 | license.txt \ | ||
191 | 9 | chrome.manifest \ | ||
192 | 10 | install.rdf \ | ||
193 | 11 | $(NULL) | ||
194 | 12 | |||
195 | 13 | contentdir = $(xul_extdir)/chrome/content | ||
196 | 14 | dist_content_DATA = \ | ||
197 | 15 | chrome/content/zeitgeist.xul \ | ||
198 | 16 | chrome/content/zeitgeist.png \ | ||
199 | 17 | $(NULL) | ||
200 | 18 | |||
201 | 19 | prefsdir = $(xul_extdir)/defaults/preferences | ||
202 | 20 | dist_prefs_DATA = \ | ||
203 | 21 | defaults/preferences/zeitgeist.js \ | ||
204 | 22 | $(NULL) | ||
205 | 23 | |||
206 | 24 | install-exec-hook: | ||
207 | 25 | $(MKDIR_P) $(DESTDIR)$(extensiondir) | ||
208 | 26 | test -h "$(DESTDIR)$(EXTENSIONS_SYMLINK)" || $(LN_S) -f "$(DESTDIR)$(xul_extdir)" "$(DESTDIR)$(EXTENSIONS_SYMLINK)" | ||
209 | 27 | |||
210 | 28 | # we want to allow also local install | ||
211 | 29 | EXTENSION_CONTENT = \ | ||
212 | 30 | $(dist_xul_ext_DATA) \ | ||
213 | 31 | defaults \ | ||
214 | 32 | chrome \ | ||
215 | 33 | components/libzeitgeist_xpcom.so \ | ||
216 | 34 | components/zeitgeist.xpt \ | ||
217 | 35 | $(NULL) | ||
218 | 36 | |||
219 | 37 | local-install: all | ||
220 | 38 | $(MAKE) -C components $@ | ||
221 | 39 | zip -r ../ZeitgeistDataprovider.xpi $(EXTENSION_CONTENT) | ||
222 | 40 | |||
223 | 41 | local-uninstall: | ||
224 | 42 | $(MAKE) -C components $@ | ||
225 | 0 | 43 | ||
226 | === added directory 'firefox-36-libzg/extension/chrome' | |||
227 | === added file 'firefox-36-libzg/extension/chrome.manifest' | |||
228 | --- firefox-36-libzg/extension/chrome.manifest 1970-01-01 00:00:00 +0000 | |||
229 | +++ firefox-36-libzg/extension/chrome.manifest 2011-05-03 18:52:25 +0000 | |||
230 | @@ -0,0 +1,2 @@ | |||
231 | 1 | content zeitgeist chrome/content/ | ||
232 | 2 | overlay chrome://browser/content/browser.xul chrome://zeitgeist/content/zeitgeist.xul | ||
233 | 0 | 3 | ||
234 | === added directory 'firefox-36-libzg/extension/chrome/content' | |||
235 | === added file 'firefox-36-libzg/extension/chrome/content/zeitgeist.png' | |||
236 | 1 | Binary files firefox-36-libzg/extension/chrome/content/zeitgeist.png 1970-01-01 00:00:00 +0000 and firefox-36-libzg/extension/chrome/content/zeitgeist.png 2011-05-03 18:52:25 +0000 differ | 4 | Binary files firefox-36-libzg/extension/chrome/content/zeitgeist.png 1970-01-01 00:00:00 +0000 and firefox-36-libzg/extension/chrome/content/zeitgeist.png 2011-05-03 18:52:25 +0000 differ |
237 | === added file 'firefox-36-libzg/extension/chrome/content/zeitgeist.xul' | |||
238 | --- firefox-36-libzg/extension/chrome/content/zeitgeist.xul 1970-01-01 00:00:00 +0000 | |||
239 | +++ firefox-36-libzg/extension/chrome/content/zeitgeist.xul 2011-05-03 18:52:25 +0000 | |||
240 | @@ -0,0 +1,164 @@ | |||
241 | 1 | <?xml version="1.0"?> | ||
242 | 2 | <overlay id="zeitgeist" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> | ||
243 | 3 | |||
244 | 4 | <script type="application/x-javascript"><![CDATA[ | ||
245 | 5 | var zeitgeistgluexpcominterface = null; | ||
246 | 6 | |||
247 | 7 | var enable_googlemail = false; | ||
248 | 8 | var googlemail_view_regex = new RegExp("mail\\.google\\.com"); | ||
249 | 9 | var pbs = Components.classes["@mozilla.org/privatebrowsing;1"] | ||
250 | 10 | .getService(Components.interfaces.nsIPrivateBrowsingService); | ||
251 | 11 | |||
252 | 12 | var debug = function (aMessage) { | ||
253 | 13 | var consoleService = Components.classes["@mozilla.org/consoleservice;1"] | ||
254 | 14 | .getService(Components.interfaces.nsIConsoleService); | ||
255 | 15 | consoleService.logStringMessage("Zeitgeist Extension: " + aMessage); | ||
256 | 16 | window.dump("Zeitgeist Extension:" + aMessage + "\n"); | ||
257 | 17 | } | ||
258 | 18 | |||
259 | 19 | var make_pattern = function(pattern) { | ||
260 | 20 | for (item in pattern) { | ||
261 | 21 | // alert(pattern[item]); | ||
262 | 22 | pattern[item] = new RegExp(pattern[item]); | ||
263 | 23 | }; | ||
264 | 24 | return pattern; | ||
265 | 25 | }; | ||
266 | 26 | |||
267 | 27 | var ZeitgeistPrefObserver = { | ||
268 | 28 | register: function() { | ||
269 | 29 | // First we'll need the preference services to look for preferences. | ||
270 | 30 | var prefService = Components.classes["@mozilla.org/preferences-service;1"] | ||
271 | 31 | .getService(Components.interfaces.nsIPrefService); | ||
272 | 32 | |||
273 | 33 | // For this._branch we ask that the preferences for extensions.myextension. and children | ||
274 | 34 | this._branch = prefService.getBranch("extensions.zeitgeist."); | ||
275 | 35 | |||
276 | 36 | // Now we queue the interface called nsIPrefBranch2. This interface is described as: | ||
277 | 37 | // "nsIPrefBranch2 allows clients to observe changes to pref values." | ||
278 | 38 | this._branch.QueryInterface(Components.interfaces.nsIPrefBranch2); | ||
279 | 39 | |||
280 | 40 | // Finally add the observer. | ||
281 | 41 | this._branch.addObserver("", this, false); | ||
282 | 42 | }, | ||
283 | 43 | |||
284 | 44 | unregister: function() { | ||
285 | 45 | if(!this._branch) return; | ||
286 | 46 | this._branch.removeObserver("", this); | ||
287 | 47 | }, | ||
288 | 48 | |||
289 | 49 | observe: function(aSubject, aTopic, aData) { | ||
290 | 50 | if(aTopic != "nsPref:changed") return; | ||
291 | 51 | // aSubject is the nsIPrefBranch we're observing (after appropriate QI) | ||
292 | 52 | // aData is the name of the pref that's been changed (relative to aSubject) | ||
293 | 53 | switch (aData) { | ||
294 | 54 | case "ignored_uris": | ||
295 | 55 | // extensions.zeitgeist.ignored_uris was changed | ||
296 | 56 | pattern = this.get_string(aData); | ||
297 | 57 | // alert(pattern); | ||
298 | 58 | ignored_uris = make_pattern(pattern); | ||
299 | 59 | break; | ||
300 | 60 | case "enable_googlemail": | ||
301 | 61 | enable_googlemail = this.get_bool(aData); | ||
302 | 62 | //alert("changed gmail to"+enable_googlemail); | ||
303 | 63 | break | ||
304 | 64 | } | ||
305 | 65 | }, | ||
306 | 66 | get_string: function(key) { | ||
307 | 67 | try { | ||
308 | 68 | return JSON.parse(this._branch.getCharPref(key)); | ||
309 | 69 | } catch(err) { | ||
310 | 70 | // this means there is no such config value | ||
311 | 71 | // ignoring this error | ||
312 | 72 | //alert(key + " : " + err); | ||
313 | 73 | }; | ||
314 | 74 | }, | ||
315 | 75 | get_bool: function(key) { | ||
316 | 76 | try { | ||
317 | 77 | return this._branch.getBoolPref(key); | ||
318 | 78 | } catch(err) { | ||
319 | 79 | // this means there is no such config value | ||
320 | 80 | // ignoring this error | ||
321 | 81 | //alert(key + " : " + err); | ||
322 | 82 | }; | ||
323 | 83 | } | ||
324 | 84 | } | ||
325 | 85 | ZeitgeistPrefObserver.register(); | ||
326 | 86 | ignored_uris = make_pattern(ZeitgeistPrefObserver.get_string("ignored_uris")); | ||
327 | 87 | debug("We are ignoring this uris: " + ignored_uris); | ||
328 | 88 | var enable_googlemail = ZeitgeistPrefObserver.get_bool("enable_googlemail"); | ||
329 | 89 | debug("the googlemail handler extension is activated? ["+enable_googlemail+"]"); | ||
330 | 90 | |||
331 | 91 | ignore_uri = function(uri) { | ||
332 | 92 | for (pattern in ignored_uris) { | ||
333 | 93 | if (ignored_uris[pattern].test(uri)) { | ||
334 | 94 | // alert("ignored " + uri); | ||
335 | 95 | return true; | ||
336 | 96 | }; | ||
337 | 97 | }; | ||
338 | 98 | return false; | ||
339 | 99 | }; | ||
340 | 100 | |||
341 | 101 | try { | ||
342 | 102 | if(zeitgeistgluexpcominterface == null) { | ||
343 | 103 | netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); | ||
344 | 104 | zeitgeistgluexpcominterface = Components. | ||
345 | 105 | classes["@zeitgeist-project.com/DATAPROVIDER/firefox-xpcom;1"]. | ||
346 | 106 | createInstance(Components.interfaces.zeitgeist); | ||
347 | 107 | } | ||
348 | 108 | } catch(err) { | ||
349 | 109 | alert(err); | ||
350 | 110 | } | ||
351 | 111 | |||
352 | 112 | var ZeitgeistProgressListener = { | ||
353 | 113 | onStateChange: function(aBrowser, aProgress, aRequest, aStateFlags) { | ||
354 | 114 | var inPrivateBrowsingMode = pbs.privateBrowsingEnabled; | ||
355 | 115 | if (inPrivateBrowsingMode) return; | ||
356 | 116 | if (aStateFlags & Components.interfaces.nsIWebProgressListener.STATE_STOP) { | ||
357 | 117 | var uri = aBrowser.currentURI.spec; | ||
358 | 118 | var mimetype = aBrowser.contentDocument.contentType; | ||
359 | 119 | if (aRequest.name == uri && !ignore_uri(uri)) { | ||
360 | 120 | zeitgeistgluexpcominterface.insert( | ||
361 | 121 | uri, | ||
362 | 122 | mimetype, | ||
363 | 123 | aBrowser.contentTitle | ||
364 | 124 | ); | ||
365 | 125 | //alert("THATS WHAT WE HAVE "+enable_googlemail+" | "+uri+" | "+(enable_googlemail & googlemail_view_regex.test(uri))); | ||
366 | 126 | if (enable_googlemail & googlemail_view_regex.test(uri)) { | ||
367 | 127 | debug("let's begin the google fun'"); | ||
368 | 128 | var dmt = aBrowser.contentDocument; | ||
369 | 129 | var head = dmt.getElementsByTagName("title")[0]; | ||
370 | 130 | head.addEventListener("DOMSubtreeModified", function(event){ | ||
371 | 131 | if (dmt.title) { | ||
372 | 132 | zeitgeistgluexpcominterface.insert( | ||
373 | 133 | dmt.location.href, | ||
374 | 134 | dmt.contentType, | ||
375 | 135 | dmt.title | ||
376 | 136 | ); | ||
377 | 137 | }; | ||
378 | 138 | }, false); | ||
379 | 139 | } | ||
380 | 140 | } | ||
381 | 141 | } | ||
382 | 142 | }, | ||
383 | 143 | // we don't implement this methods | ||
384 | 144 | onStatusChange: function(){}, | ||
385 | 145 | onLocationChange: function(){}, | ||
386 | 146 | onSecurityChange: function(){}, | ||
387 | 147 | onProgressChange: function(){}, | ||
388 | 148 | }; | ||
389 | 149 | |||
390 | 150 | |||
391 | 151 | var zeitgeist = { | ||
392 | 152 | init: function() { | ||
393 | 153 | gBrowser.addTabsProgressListener(ZeitgeistProgressListener); | ||
394 | 154 | }, | ||
395 | 155 | uninit: function() { | ||
396 | 156 | gBrowser.removeTabsProgressListener(ZeitgeistProgressListener); | ||
397 | 157 | }, | ||
398 | 158 | }; | ||
399 | 159 | |||
400 | 160 | window.addEventListener("load", function() {zeitgeist.init()}, false); | ||
401 | 161 | window.addEventListener("unload", function() {zeitgeist.uninit()}, false); | ||
402 | 162 | |||
403 | 163 | ]]></script> | ||
404 | 164 | </overlay> | ||
405 | 0 | 165 | ||
406 | === added directory 'firefox-36-libzg/extension/components' | |||
407 | === added file 'firefox-36-libzg/extension/components/Makefile.am' | |||
408 | --- firefox-36-libzg/extension/components/Makefile.am 1970-01-01 00:00:00 +0000 | |||
409 | +++ firefox-36-libzg/extension/components/Makefile.am 2011-05-03 18:52:25 +0000 | |||
410 | @@ -0,0 +1,60 @@ | |||
411 | 1 | zeitgeistmoduledir = $(libdir)/xul-ext-zeitgeist | ||
412 | 2 | zeitgeistmodule_LTLIBRARIES = libzeitgeist_xpcom.la | ||
413 | 3 | zeitgeistmodule_DATA = zeitgeist.xpt | ||
414 | 4 | |||
415 | 5 | xul_extdir = $(datadir)/xul-ext-zeitgeist | ||
416 | 6 | |||
417 | 7 | libzeitgeist_xpcom_la_SOURCES = \ | ||
418 | 8 | ZeitgeistComponent.cpp \ | ||
419 | 9 | ZeitgeistModule.cpp \ | ||
420 | 10 | $(NULL) | ||
421 | 11 | |||
422 | 12 | libzeitgeist_xpcom_la_CXXFLAGS = \ | ||
423 | 13 | -include "xpcom-config.h" \ | ||
424 | 14 | $(ZEITGEIST_CFLAGS) \ | ||
425 | 15 | $(LIBXUL_1_9_2_CFLAGS) \ | ||
426 | 16 | $(NULL) | ||
427 | 17 | |||
428 | 18 | libzeitgeist_xpcom_la_LIBADD = \ | ||
429 | 19 | $(ZEITGEIST_LIBS) \ | ||
430 | 20 | $(LIBXUL_1_9_2_LIBS) \ | ||
431 | 21 | $(NULL) | ||
432 | 22 | |||
433 | 23 | libzeitgeist_xpcom_la_LDFLAGS = \ | ||
434 | 24 | -module -avoid-version \ | ||
435 | 25 | $(NULL) | ||
436 | 26 | |||
437 | 27 | BUILT_SOURCES = \ | ||
438 | 28 | zeitgeist-library.h \ | ||
439 | 29 | zeitgeist.h \ | ||
440 | 30 | zeitgeist.xpt \ | ||
441 | 31 | $(NULL) | ||
442 | 32 | |||
443 | 33 | EXTRA_DIST = \ | ||
444 | 34 | zeitgeist.idl \ | ||
445 | 35 | zeitgeistextend.h \ | ||
446 | 36 | $(NULL) | ||
447 | 37 | |||
448 | 38 | DISTCLEANFILES = \ | ||
449 | 39 | $(BUILT_SOURCES) \ | ||
450 | 40 | $(NULL) | ||
451 | 41 | |||
452 | 42 | |||
453 | 43 | zeitgeist.h: zeitgeist.idl | ||
454 | 44 | $(AM_V_GEN)$(XPIDL_BIN) -m header -I $(XUL_IDLDIR) -o zeitgeist $< | ||
455 | 45 | |||
456 | 46 | zeitgeist.xpt: zeitgeist.idl | ||
457 | 47 | $(AM_V_GEN)$(XPIDL_BIN) -m typelib -I $(XUL_IDLDIR) -o zeitgeist $< | ||
458 | 48 | |||
459 | 49 | zeitgeist-library.h: | ||
460 | 50 | $(AM_V_GEN)$(LN_S) "`$(PKG_CONFIG) --variable includedir zeitgeist-1.0`/zeitgeist-1.0/zeitgeist.h" $@ | ||
461 | 51 | |||
462 | 52 | install-exec-hook: | ||
463 | 53 | test -d $(DESTDIR)$(xul_extdir) || $(MKDIR_P) $(DESTDIR)$(xul_extdir) | ||
464 | 54 | test -h $(DESTDIR)$(xul_extdir)/components || $(LN_S) -f $(DESTDIR)$(zeitgeistmoduledir) $(DESTDIR)$(xul_extdir)/components | ||
465 | 55 | |||
466 | 56 | # small helper with local install | ||
467 | 57 | local-install: all | ||
468 | 58 | cp .libs/libzeitgeist_xpcom.so ./ | ||
469 | 59 | |||
470 | 60 | local-uninstall: ; | ||
471 | 0 | 61 | ||
472 | === added file 'firefox-36-libzg/extension/components/ZeitgeistComponent.cpp' | |||
473 | --- firefox-36-libzg/extension/components/ZeitgeistComponent.cpp 1970-01-01 00:00:00 +0000 | |||
474 | +++ firefox-36-libzg/extension/components/ZeitgeistComponent.cpp 2011-05-03 18:52:25 +0000 | |||
475 | @@ -0,0 +1,39 @@ | |||
476 | 1 | /* | ||
477 | 2 | * ZeitgeistComponent.cpp | ||
478 | 3 | * This file is part of zeitgeist dataprovider for firefox | ||
479 | 4 | * | ||
480 | 5 | * Copyright (C) 2010 - Markus Korn <thekorn@gmx.de> | ||
481 | 6 | * | ||
482 | 7 | * zeitgeist dataprovider for firefox is free software; you can redistribute it and/or | ||
483 | 8 | * modify it under the terms of the GNU Lesser General Public | ||
484 | 9 | * License as published by the Free Software Foundation; either | ||
485 | 10 | * version 3 of the License, or (at your option) any later version. | ||
486 | 11 | * | ||
487 | 12 | * zeitgeist dataprovider for firefox is distributed in the hope that it will be useful, | ||
488 | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
489 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
490 | 15 | * Lesser General Public License for more details. | ||
491 | 16 | * | ||
492 | 17 | * You should have received a copy of the GNU Lesser General Public | ||
493 | 18 | * License along with this library; if not, write to the Free Software | ||
494 | 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
495 | 20 | */ | ||
496 | 21 | |||
497 | 22 | |||
498 | 23 | #include "nsIGenericFactory.h" | ||
499 | 24 | #include "zeitgeist.h" | ||
500 | 25 | #include "zeitgeistextend.h" | ||
501 | 26 | |||
502 | 27 | NS_GENERIC_FACTORY_CONSTRUCTOR(zeitgeistextend) | ||
503 | 28 | |||
504 | 29 | static nsModuleComponentInfo components[] = | ||
505 | 30 | { | ||
506 | 31 | { | ||
507 | 32 | ZEITGEIST_COMPONENT_CLASSNAME, | ||
508 | 33 | ZEITGEIST_COMPONENT_CID, | ||
509 | 34 | ZEITGEIST_COMPONENT_CONTRACTID, | ||
510 | 35 | zeitgeistextendConstructor, | ||
511 | 36 | } | ||
512 | 37 | }; | ||
513 | 38 | |||
514 | 39 | NS_IMPL_NSGETMODULE("ZeitgeistModule", components) | ||
515 | 0 | 40 | ||
516 | === added file 'firefox-36-libzg/extension/components/ZeitgeistModule.cpp' | |||
517 | --- firefox-36-libzg/extension/components/ZeitgeistModule.cpp 1970-01-01 00:00:00 +0000 | |||
518 | +++ firefox-36-libzg/extension/components/ZeitgeistModule.cpp 2011-05-03 18:52:25 +0000 | |||
519 | @@ -0,0 +1,86 @@ | |||
520 | 1 | /* | ||
521 | 2 | * ZeitgeistModule.cpp | ||
522 | 3 | * This file is part of zeitgeist dataprovider for firefox | ||
523 | 4 | * | ||
524 | 5 | * Copyright (C) 2010 - Markus Korn <thekorn@gmx.de> | ||
525 | 6 | * Copyright (C) 2010 - Michal Hruby <michal.mhr@gmail.com> | ||
526 | 7 | * | ||
527 | 8 | * zeitgeist dataprovider for firefox is free software; you can redistribute it and/or | ||
528 | 9 | * modify it under the terms of the GNU Lesser General Public | ||
529 | 10 | * License as published by the Free Software Foundation; either | ||
530 | 11 | * version 3 of the License, or (at your option) any later version. | ||
531 | 12 | * | ||
532 | 13 | * zeitgeist dataprovider for firefox is distributed in the hope that it will be useful, | ||
533 | 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
534 | 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
535 | 16 | * Lesser General Public License for more details. | ||
536 | 17 | * | ||
537 | 18 | * You should have received a copy of the GNU Lesser General Public | ||
538 | 19 | * License along with this library; if not, write to the Free Software | ||
539 | 20 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
540 | 21 | */ | ||
541 | 22 | |||
542 | 23 | |||
543 | 24 | #include "zeitgeist.h" | ||
544 | 25 | #include "zeitgeistextend.h" | ||
545 | 26 | |||
546 | 27 | #include <nsStringAPI.h> | ||
547 | 28 | #include <glib.h> | ||
548 | 29 | #include <glib-object.h> | ||
549 | 30 | #include <zeitgeist.h> | ||
550 | 31 | |||
551 | 32 | |||
552 | 33 | using namespace std; | ||
553 | 34 | |||
554 | 35 | NS_IMPL_ISUPPORTS1(zeitgeistextend, zeitgeist) | ||
555 | 36 | |||
556 | 37 | zeitgeistextend::zeitgeistextend() | ||
557 | 38 | { | ||
558 | 39 | g_debug("constructor of zeitgeistextend"); | ||
559 | 40 | g_type_init (); | ||
560 | 41 | |||
561 | 42 | log = (ZeitgeistLog *)g_object_new (ZEITGEIST_TYPE_LOG, NULL); | ||
562 | 43 | } | ||
563 | 44 | |||
564 | 45 | zeitgeistextend::~zeitgeistextend() | ||
565 | 46 | { | ||
566 | 47 | g_debug("destructor of zeitgeistextend"); | ||
567 | 48 | } | ||
568 | 49 | |||
569 | 50 | NS_IMETHODIMP zeitgeistextend::Insert(const char *url, | ||
570 | 51 | const char *mimetype, | ||
571 | 52 | const nsACString &title_str) | ||
572 | 53 | { | ||
573 | 54 | ZeitgeistEvent *event; | ||
574 | 55 | gchar *title = NULL; | ||
575 | 56 | |||
576 | 57 | g_debug("zeitgeist start - creating event"); | ||
577 | 58 | |||
578 | 59 | if (!title_str.IsEmpty ()) | ||
579 | 60 | { | ||
580 | 61 | gsize title_len = title_str.EndReading () - title_str.BeginReading (); | ||
581 | 62 | title = g_strndup (title_str.BeginReading (), title_len); | ||
582 | 63 | } | ||
583 | 64 | |||
584 | 65 | event = zeitgeist_event_new_full ( | ||
585 | 66 | ZEITGEIST_ZG_ACCESS_EVENT, | ||
586 | 67 | ZEITGEIST_ZG_USER_ACTIVITY, | ||
587 | 68 | "application://firefox.desktop", | ||
588 | 69 | zeitgeist_subject_new_full ( | ||
589 | 70 | url, | ||
590 | 71 | ZEITGEIST_NFO_WEBSITE, | ||
591 | 72 | ZEITGEIST_NFO_REMOTE_DATA_OBJECT, | ||
592 | 73 | mimetype, | ||
593 | 74 | url, | ||
594 | 75 | title, | ||
595 | 76 | "net"), | ||
596 | 77 | NULL); | ||
597 | 78 | |||
598 | 79 | if (title) g_free (title); | ||
599 | 80 | g_debug("inserting event"); | ||
600 | 81 | zeitgeist_log_insert_events_no_reply(log, event, NULL); | ||
601 | 82 | g_debug("zeitgeist end"); | ||
602 | 83 | |||
603 | 84 | return NS_OK; | ||
604 | 85 | } | ||
605 | 86 | |||
606 | 0 | 87 | ||
607 | === added file 'firefox-36-libzg/extension/components/zeitgeist.idl' | |||
608 | --- firefox-36-libzg/extension/components/zeitgeist.idl 1970-01-01 00:00:00 +0000 | |||
609 | +++ firefox-36-libzg/extension/components/zeitgeist.idl 2011-05-03 18:52:25 +0000 | |||
610 | @@ -0,0 +1,30 @@ | |||
611 | 1 | /* | ||
612 | 2 | * zeitgeist.idl | ||
613 | 3 | * This file is part of zeitgeist dataprovider for firefox | ||
614 | 4 | * | ||
615 | 5 | * Copyright (C) 2010 - Markus Korn <thekorn@gmx.de> | ||
616 | 6 | * Copyright (C) 2010 - Michal Hruby <michal.mhr@gmail.com> | ||
617 | 7 | * | ||
618 | 8 | * zeitgeist dataprovider for firefox is free software; you can redistribute it and/or | ||
619 | 9 | * modify it under the terms of the GNU Lesser General Public | ||
620 | 10 | * License as published by the Free Software Foundation; either | ||
621 | 11 | * version 3 of the License, or (at your option) any later version. | ||
622 | 12 | * | ||
623 | 13 | * zeitgeist dataprovider for firefox is distributed in the hope that it will be useful, | ||
624 | 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
625 | 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
626 | 16 | * Lesser General Public License for more details. | ||
627 | 17 | * | ||
628 | 18 | * You should have received a copy of the GNU Lesser General Public | ||
629 | 19 | * License along with this library; if not, write to the Free Software | ||
630 | 20 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
631 | 21 | */ | ||
632 | 22 | |||
633 | 23 | |||
634 | 24 | #include "nsISupports.idl" | ||
635 | 25 | [scriptable, uuid(d879c08c-517d-44f0-83e1-3ef75a527ddf)] | ||
636 | 26 | interface zeitgeist : nsISupports | ||
637 | 27 | { | ||
638 | 28 | void insert(in string url, in string mimetype, in AUTF8String title); | ||
639 | 29 | }; | ||
640 | 30 | |||
641 | 0 | 31 | ||
642 | === added file 'firefox-36-libzg/extension/components/zeitgeistextend.h' | |||
643 | --- firefox-36-libzg/extension/components/zeitgeistextend.h 1970-01-01 00:00:00 +0000 | |||
644 | +++ firefox-36-libzg/extension/components/zeitgeistextend.h 2011-05-03 18:52:25 +0000 | |||
645 | @@ -0,0 +1,45 @@ | |||
646 | 1 | /* | ||
647 | 2 | * zeitgeistextend.h | ||
648 | 3 | * This file is part of zeitgeist dataprovider for firefox | ||
649 | 4 | * | ||
650 | 5 | * Copyright (C) 2010 - Markus Korn <thekorn@gmx.de> | ||
651 | 6 | * | ||
652 | 7 | * zeitgeist dataprovider for firefox is free software; you can redistribute it and/or | ||
653 | 8 | * modify it under the terms of the GNU Lesser General Public | ||
654 | 9 | * License as published by the Free Software Foundation; either | ||
655 | 10 | * version 3 of the License, or (at your option) any later version. | ||
656 | 11 | * | ||
657 | 12 | * zeitgeist dataprovider for firefox is distributed in the hope that it will be useful, | ||
658 | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
659 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
660 | 15 | * Lesser General Public License for more details. | ||
661 | 16 | * | ||
662 | 17 | * You should have received a copy of the GNU Lesser General Public | ||
663 | 18 | * License along with this library; if not, write to the Free Software | ||
664 | 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
665 | 20 | */ | ||
666 | 21 | |||
667 | 22 | |||
668 | 23 | #ifndef _ZEITGEISTEXTEND_H_ | ||
669 | 24 | #define _ZEITGEISTEXTEND_H_ | ||
670 | 25 | |||
671 | 26 | #include "zeitgeist.h" | ||
672 | 27 | #include "zeitgeist-library.h" | ||
673 | 28 | |||
674 | 29 | #define ZEITGEIST_COMPONENT_CONTRACTID "@zeitgeist-project.com/DATAPROVIDER/firefox-xpcom;1" | ||
675 | 30 | #define ZEITGEIST_COMPONENT_CLASSNAME "zeitgeist dataprovider for firefox" | ||
676 | 31 | #define ZEITGEIST_COMPONENT_CID { 0xd879c08c, 0x517d, 0x44f0, { 0x83, 0xe1, 0x3e, 0xf7, 0x5a, 0x52, 0x7d, 0xdf } } | ||
677 | 32 | |||
678 | 33 | //d879c08c-517d-44f0-83e1-3ef75a527ddf | ||
679 | 34 | class zeitgeistextend : public zeitgeist | ||
680 | 35 | { | ||
681 | 36 | public: | ||
682 | 37 | NS_DECL_ISUPPORTS | ||
683 | 38 | NS_DECL_ZEITGEIST | ||
684 | 39 | |||
685 | 40 | zeitgeistextend(); | ||
686 | 41 | virtual ~zeitgeistextend(); | ||
687 | 42 | ZeitgeistLog *log; | ||
688 | 43 | |||
689 | 44 | }; | ||
690 | 45 | #endif | ||
691 | 0 | 46 | ||
692 | === added directory 'firefox-36-libzg/extension/defaults' | |||
693 | === added directory 'firefox-36-libzg/extension/defaults/preferences' | |||
694 | === added file 'firefox-36-libzg/extension/defaults/preferences/zeitgeist.js' | |||
695 | --- firefox-36-libzg/extension/defaults/preferences/zeitgeist.js 1970-01-01 00:00:00 +0000 | |||
696 | +++ firefox-36-libzg/extension/defaults/preferences/zeitgeist.js 2011-05-03 18:52:25 +0000 | |||
697 | @@ -0,0 +1,2 @@ | |||
698 | 1 | pref("extensions.zeitgeist.ignored_uris", "[\"^about:*\"]"); | ||
699 | 2 | pref("extensions.zeitgeist.enable_googlemail", false); | ||
700 | 0 | 3 | ||
701 | === added file 'firefox-36-libzg/extension/install.rdf' | |||
702 | --- firefox-36-libzg/extension/install.rdf 1970-01-01 00:00:00 +0000 | |||
703 | +++ firefox-36-libzg/extension/install.rdf 2011-05-03 18:52:25 +0000 | |||
704 | @@ -0,0 +1,28 @@ | |||
705 | 1 | <?xml version="1.0"?> | ||
706 | 2 | |||
707 | 3 | <RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | ||
708 | 4 | xmlns:em="http://www.mozilla.org/2004/em-rdf#"> | ||
709 | 5 | |||
710 | 6 | <Description about="urn:mozilla:install-manifest"> | ||
711 | 7 | <em:id>xpcom_firefox@zeitgeist-project.com</em:id> | ||
712 | 8 | <em:version>0.3</em:version> | ||
713 | 9 | <em:type>2</em:type> | ||
714 | 10 | |||
715 | 11 | <!-- Target Application this extension can install into, | ||
716 | 12 | with minimum and maximum supported versions. --> | ||
717 | 13 | <em:targetApplication> | ||
718 | 14 | <Description> | ||
719 | 15 | <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> | ||
720 | 16 | <em:minVersion>3.5</em:minVersion> | ||
721 | 17 | <em:maxVersion>3.6.*</em:maxVersion> | ||
722 | 18 | </Description> | ||
723 | 19 | </em:targetApplication> | ||
724 | 20 | |||
725 | 21 | <!-- Front End MetaData --> | ||
726 | 22 | <em:name>zeitgeist</em:name> | ||
727 | 23 | <em:description>dataprovider for the zeitgeist framework, using xpcom and libzeitgeist</em:description> | ||
728 | 24 | <em:creator>Markus Korn</em:creator> | ||
729 | 25 | <em:homepageURL>http://launchpad.net/zeitgeist</em:homepageURL> | ||
730 | 26 | <em:iconURL>chrome://zeitgeist/content/zeitgeist.png</em:iconURL> | ||
731 | 27 | </Description> | ||
732 | 28 | </RDF> | ||
733 | 0 | 29 | ||
734 | === added file 'firefox-36-libzg/extension/license.txt' | |||
735 | --- firefox-36-libzg/extension/license.txt 1970-01-01 00:00:00 +0000 | |||
736 | +++ firefox-36-libzg/extension/license.txt 2011-05-03 18:52:25 +0000 | |||
737 | @@ -0,0 +1,166 @@ | |||
738 | 1 | GNU LESSER GENERAL PUBLIC LICENSE | ||
739 | 2 | Version 3, 29 June 2007 | ||
740 | 3 | |||
741 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> | ||
742 | 5 | Everyone is permitted to copy and distribute verbatim copies | ||
743 | 6 | of this license document, but changing it is not allowed. | ||
744 | 7 | |||
745 | 8 | |||
746 | 9 | This version of the GNU Lesser General Public License incorporates | ||
747 | 10 | the terms and conditions of version 3 of the GNU General Public | ||
748 | 11 | License, supplemented by the additional permissions listed below. | ||
749 | 12 | |||
750 | 13 | 0. Additional Definitions. | ||
751 | 14 | |||
752 | 15 | As used herein, "this License" refers to version 3 of the GNU Lesser | ||
753 | 16 | General Public License, and the "GNU GPL" refers to version 3 of the GNU | ||
754 | 17 | General Public License. | ||
755 | 18 | |||
756 | 19 | "The Library" refers to a covered work governed by this License, | ||
757 | 20 | other than an Application or a Combined Work as defined below. | ||
758 | 21 | |||
759 | 22 | An "Application" is any work that makes use of an interface provided | ||
760 | 23 | by the Library, but which is not otherwise based on the Library. | ||
761 | 24 | Defining a subclass of a class defined by the Library is deemed a mode | ||
762 | 25 | of using an interface provided by the Library. | ||
763 | 26 | |||
764 | 27 | A "Combined Work" is a work produced by combining or linking an | ||
765 | 28 | Application with the Library. The particular version of the Library | ||
766 | 29 | with which the Combined Work was made is also called the "Linked | ||
767 | 30 | Version". | ||
768 | 31 | |||
769 | 32 | The "Minimal Corresponding Source" for a Combined Work means the | ||
770 | 33 | Corresponding Source for the Combined Work, excluding any source code | ||
771 | 34 | for portions of the Combined Work that, considered in isolation, are | ||
772 | 35 | based on the Application, and not on the Linked Version. | ||
773 | 36 | |||
774 | 37 | The "Corresponding Application Code" for a Combined Work means the | ||
775 | 38 | object code and/or source code for the Application, including any data | ||
776 | 39 | and utility programs needed for reproducing the Combined Work from the | ||
777 | 40 | Application, but excluding the System Libraries of the Combined Work. | ||
778 | 41 | |||
779 | 42 | 1. Exception to Section 3 of the GNU GPL. | ||
780 | 43 | |||
781 | 44 | You may convey a covered work under sections 3 and 4 of this License | ||
782 | 45 | without being bound by section 3 of the GNU GPL. | ||
783 | 46 | |||
784 | 47 | 2. Conveying Modified Versions. | ||
785 | 48 | |||
786 | 49 | If you modify a copy of the Library, and, in your modifications, a | ||
787 | 50 | facility refers to a function or data to be supplied by an Application | ||
788 | 51 | that uses the facility (other than as an argument passed when the | ||
789 | 52 | facility is invoked), then you may convey a copy of the modified | ||
790 | 53 | version: | ||
791 | 54 | |||
792 | 55 | a) under this License, provided that you make a good faith effort to | ||
793 | 56 | ensure that, in the event an Application does not supply the | ||
794 | 57 | function or data, the facility still operates, and performs | ||
795 | 58 | whatever part of its purpose remains meaningful, or | ||
796 | 59 | |||
797 | 60 | b) under the GNU GPL, with none of the additional permissions of | ||
798 | 61 | this License applicable to that copy. | ||
799 | 62 | |||
800 | 63 | 3. Object Code Incorporating Material from Library Header Files. | ||
801 | 64 | |||
802 | 65 | The object code form of an Application may incorporate material from | ||
803 | 66 | a header file that is part of the Library. You may convey such object | ||
804 | 67 | code under terms of your choice, provided that, if the incorporated | ||
805 | 68 | material is not limited to numerical parameters, data structure | ||
806 | 69 | layouts and accessors, or small macros, inline functions and templates | ||
807 | 70 | (ten or fewer lines in length), you do both of the following: | ||
808 | 71 | |||
809 | 72 | a) Give prominent notice with each copy of the object code that the | ||
810 | 73 | Library is used in it and that the Library and its use are | ||
811 | 74 | covered by this License. | ||
812 | 75 | |||
813 | 76 | b) Accompany the object code with a copy of the GNU GPL and this license | ||
814 | 77 | document. | ||
815 | 78 | |||
816 | 79 | 4. Combined Works. | ||
817 | 80 | |||
818 | 81 | You may convey a Combined Work under terms of your choice that, | ||
819 | 82 | taken together, effectively do not restrict modification of the | ||
820 | 83 | portions of the Library contained in the Combined Work and reverse | ||
821 | 84 | engineering for debugging such modifications, if you also do each of | ||
822 | 85 | the following: | ||
823 | 86 | |||
824 | 87 | a) Give prominent notice with each copy of the Combined Work that | ||
825 | 88 | the Library is used in it and that the Library and its use are | ||
826 | 89 | covered by this License. | ||
827 | 90 | |||
828 | 91 | b) Accompany the Combined Work with a copy of the GNU GPL and this license | ||
829 | 92 | document. | ||
830 | 93 | |||
831 | 94 | c) For a Combined Work that displays copyright notices during | ||
832 | 95 | execution, include the copyright notice for the Library among | ||
833 | 96 | these notices, as well as a reference directing the user to the | ||
834 | 97 | copies of the GNU GPL and this license document. | ||
835 | 98 | |||
836 | 99 | d) Do one of the following: | ||
837 | 100 | |||
838 | 101 | 0) Convey the Minimal Corresponding Source under the terms of this | ||
839 | 102 | License, and the Corresponding Application Code in a form | ||
840 | 103 | suitable for, and under terms that permit, the user to | ||
841 | 104 | recombine or relink the Application with a modified version of | ||
842 | 105 | the Linked Version to produce a modified Combined Work, in the | ||
843 | 106 | manner specified by section 6 of the GNU GPL for conveying | ||
844 | 107 | Corresponding Source. | ||
845 | 108 | |||
846 | 109 | 1) Use a suitable shared library mechanism for linking with the | ||
847 | 110 | Library. A suitable mechanism is one that (a) uses at run time | ||
848 | 111 | a copy of the Library already present on the user's computer | ||
849 | 112 | system, and (b) will operate properly with a modified version | ||
850 | 113 | of the Library that is interface-compatible with the Linked | ||
851 | 114 | Version. | ||
852 | 115 | |||
853 | 116 | e) Provide Installation Information, but only if you would otherwise | ||
854 | 117 | be required to provide such information under section 6 of the | ||
855 | 118 | GNU GPL, and only to the extent that such information is | ||
856 | 119 | necessary to install and execute a modified version of the | ||
857 | 120 | Combined Work produced by recombining or relinking the | ||
858 | 121 | Application with a modified version of the Linked Version. (If | ||
859 | 122 | you use option 4d0, the Installation Information must accompany | ||
860 | 123 | the Minimal Corresponding Source and Corresponding Application | ||
861 | 124 | Code. If you use option 4d1, you must provide the Installation | ||
862 | 125 | Information in the manner specified by section 6 of the GNU GPL | ||
863 | 126 | for conveying Corresponding Source.) | ||
864 | 127 | |||
865 | 128 | 5. Combined Libraries. | ||
866 | 129 | |||
867 | 130 | You may place library facilities that are a work based on the | ||
868 | 131 | Library side by side in a single library together with other library | ||
869 | 132 | facilities that are not Applications and are not covered by this | ||
870 | 133 | License, and convey such a combined library under terms of your | ||
871 | 134 | choice, if you do both of the following: | ||
872 | 135 | |||
873 | 136 | a) Accompany the combined library with a copy of the same work based | ||
874 | 137 | on the Library, uncombined with any other library facilities, | ||
875 | 138 | conveyed under the terms of this License. | ||
876 | 139 | |||
877 | 140 | b) Give prominent notice with the combined library that part of it | ||
878 | 141 | is a work based on the Library, and explaining where to find the | ||
879 | 142 | accompanying uncombined form of the same work. | ||
880 | 143 | |||
881 | 144 | 6. Revised Versions of the GNU Lesser General Public License. | ||
882 | 145 | |||
883 | 146 | The Free Software Foundation may publish revised and/or new versions | ||
884 | 147 | of the GNU Lesser General Public License from time to time. Such new | ||
885 | 148 | versions will be similar in spirit to the present version, but may | ||
886 | 149 | differ in detail to address new problems or concerns. | ||
887 | 150 | |||
888 | 151 | Each version is given a distinguishing version number. If the | ||
889 | 152 | Library as you received it specifies that a certain numbered version | ||
890 | 153 | of the GNU Lesser General Public License "or any later version" | ||
891 | 154 | applies to it, you have the option of following the terms and | ||
892 | 155 | conditions either of that published version or of any later version | ||
893 | 156 | published by the Free Software Foundation. If the Library as you | ||
894 | 157 | received it does not specify a version number of the GNU Lesser | ||
895 | 158 | General Public License, you may choose any version of the GNU Lesser | ||
896 | 159 | General Public License ever published by the Free Software Foundation. | ||
897 | 160 | |||
898 | 161 | If the Library as you received it specifies that a proxy can decide | ||
899 | 162 | whether future versions of the GNU Lesser General Public License shall | ||
900 | 163 | apply, that proxy's public statement of acceptance of any version is | ||
901 | 164 | permanent authorization for you to choose that version for the | ||
902 | 165 | Library. | ||
903 | 166 | |||
904 | 0 | 167 | ||
905 | === added directory 'firefox-40-libzg' | |||
906 | === added file 'firefox-40-libzg/Makefile.am' | |||
907 | --- firefox-40-libzg/Makefile.am 1970-01-01 00:00:00 +0000 | |||
908 | +++ firefox-40-libzg/Makefile.am 2011-05-03 18:52:25 +0000 | |||
909 | @@ -0,0 +1,16 @@ | |||
910 | 1 | SUBDIRS = extension | ||
911 | 2 | |||
912 | 3 | # identifier for the FF profile in which 'make install' installs this extension | ||
913 | 4 | TARGET_PROFILE = *default* | ||
914 | 5 | |||
915 | 6 | local-install: all | ||
916 | 7 | $(MAKE) -C extension $@ | ||
917 | 8 | unzip -o ZeitgeistDataprovider.xpi -d ~/xpcom_firefox\@zeitgeist-project.com | ||
918 | 9 | cd ~/.mozilla/firefox/$(TARGET_PROFILE)/ && mkdir -p extensions | ||
919 | 10 | cp -r ~/xpcom_firefox\@zeitgeist-project.com/ ~/.mozilla/firefox/$(TARGET_PROFILE)/extensions/ | ||
920 | 11 | |||
921 | 12 | local-uninstall: | ||
922 | 13 | $(MAKE) -C extension $@ | ||
923 | 14 | -rm -rf ~/.mozilla/firefox/$(TARGET_PROFILE)/extensions/xpcom_firefox\@zeitgeist-project.com | ||
924 | 15 | -rm -rf ~/.mozilla/firefox/$(TARGET_PROFILE)/extensions/ZeitgeistDataprovider.xpi | ||
925 | 16 | |||
926 | 0 | 17 | ||
927 | === added file 'firefox-40-libzg/README' | |||
928 | --- firefox-40-libzg/README 1970-01-01 00:00:00 +0000 | |||
929 | +++ firefox-40-libzg/README 2011-05-03 18:52:25 +0000 | |||
930 | @@ -0,0 +1,43 @@ | |||
931 | 1 | Links | ||
932 | 2 | ===== | ||
933 | 3 | |||
934 | 4 | Code is based on: | ||
935 | 5 | http://www.ibm.com/developerworks/opensource/library/os-xpcomfirefox/index.html | ||
936 | 6 | |||
937 | 7 | Other useful ressources: | ||
938 | 8 | https://developer.mozilla.org/en/XPCOM_Glue | ||
939 | 9 | http://www.iosart.com/firefox/xpcom/ | ||
940 | 10 | http://www.ibm.com/developerworks/webservices/library/co-xpcom5.html (with link to the complete series) | ||
941 | 11 | http://blog.lazytech.info/2007/05/26/xpcom-javascript-function-call/ (about implementing JS callbacks) | ||
942 | 12 | |||
943 | 13 | |||
944 | 14 | Unknown symbols in ubuntu lucid | ||
945 | 15 | =============================== | ||
946 | 16 | |||
947 | 17 | On ubuntu lucid `ldd -r *.so` shows libxpcom as unknown symbol, to fix this create | ||
948 | 18 | |||
949 | 19 | /etc/ld.so.conf.d/libxpcom.conf | ||
950 | 20 | |||
951 | 21 | with this content: | ||
952 | 22 | |||
953 | 23 | # for xpcom | ||
954 | 24 | /usr/lib/xulrunner-1.9.2.3 | ||
955 | 25 | |||
956 | 26 | |||
957 | 27 | And rebuild the cache | ||
958 | 28 | $ sudo ldconfig | ||
959 | 29 | |||
960 | 30 | You have to do the same for libzeitgeist! | ||
961 | 31 | |||
962 | 32 | |||
963 | 33 | Component UUID | ||
964 | 34 | ============== | ||
965 | 35 | |||
966 | 36 | the uuid for the component is | ||
967 | 37 | d879c08c-517d-44f0-83e1-3ef75a527ddf | ||
968 | 38 | |||
969 | 39 | |||
970 | 40 | TODO | ||
971 | 41 | ==== | ||
972 | 42 | * add JS callback to .insert() so user can be notified of issues while inserting event | ||
973 | 43 | * add events for downloads, see https://developer.mozilla.org/en/nsIDownloadProgressListener | ||
974 | 0 | 44 | ||
975 | === added directory 'firefox-40-libzg/extension' | |||
976 | === added file 'firefox-40-libzg/extension/Makefile.am' | |||
977 | --- firefox-40-libzg/extension/Makefile.am 1970-01-01 00:00:00 +0000 | |||
978 | +++ firefox-40-libzg/extension/Makefile.am 2011-05-03 18:52:25 +0000 | |||
979 | @@ -0,0 +1,42 @@ | |||
980 | 1 | SUBDIRS = components | ||
981 | 2 | |||
982 | 3 | extensiondir = $(datadir)/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384} | ||
983 | 4 | EXTENSIONS_SYMLINK = $(extensiondir)/xpcom_firefox@zeitgeist-project.com | ||
984 | 5 | |||
985 | 6 | xul_extdir = $(datadir)/xul-ext-zeitgeist | ||
986 | 7 | dist_xul_ext_DATA = \ | ||
987 | 8 | license.txt \ | ||
988 | 9 | chrome.manifest \ | ||
989 | 10 | install.rdf \ | ||
990 | 11 | $(NULL) | ||
991 | 12 | |||
992 | 13 | contentdir = $(xul_extdir)/chrome/content | ||
993 | 14 | dist_content_DATA = \ | ||
994 | 15 | chrome/content/zeitgeist.xul \ | ||
995 | 16 | chrome/content/zeitgeist.png \ | ||
996 | 17 | $(NULL) | ||
997 | 18 | |||
998 | 19 | prefsdir = $(xul_extdir)/defaults/preferences | ||
999 | 20 | dist_prefs_DATA = \ | ||
1000 | 21 | defaults/preferences/zeitgeist.js \ | ||
1001 | 22 | $(NULL) | ||
1002 | 23 | |||
1003 | 24 | install-exec-hook: | ||
1004 | 25 | $(MKDIR_P) $(DESTDIR)$(extensiondir) | ||
1005 | 26 | test -h "$(DESTDIR)$(EXTENSIONS_SYMLINK)" || $(LN_S) -f "$(DESTDIR)$(xul_extdir)" "$(DESTDIR)$(EXTENSIONS_SYMLINK)" | ||
1006 | 27 | |||
1007 | 28 | # we want to allow also local install | ||
1008 | 29 | EXTENSION_CONTENT = \ | ||
1009 | 30 | $(dist_xul_ext_DATA) \ | ||
1010 | 31 | defaults \ | ||
1011 | 32 | chrome \ | ||
1012 | 33 | components/libzeitgeist_xpcom.so \ | ||
1013 | 34 | components/zeitgeist.xpt \ | ||
1014 | 35 | $(NULL) | ||
1015 | 36 | |||
1016 | 37 | local-install: all | ||
1017 | 38 | $(MAKE) -C components $@ | ||
1018 | 39 | zip -r ../ZeitgeistDataprovider.xpi $(EXTENSION_CONTENT) | ||
1019 | 40 | |||
1020 | 41 | local-uninstall: | ||
1021 | 42 | $(MAKE) -C components $@ | ||
1022 | 0 | 43 | ||
1023 | === added directory 'firefox-40-libzg/extension/chrome' | |||
1024 | === added file 'firefox-40-libzg/extension/chrome.manifest' | |||
1025 | --- firefox-40-libzg/extension/chrome.manifest 1970-01-01 00:00:00 +0000 | |||
1026 | +++ firefox-40-libzg/extension/chrome.manifest 2011-05-03 18:52:25 +0000 | |||
1027 | @@ -0,0 +1,4 @@ | |||
1028 | 1 | binary-component components/libzeitgeist_xpcom.so | ||
1029 | 2 | interfaces components/zeitgeist.xpt | ||
1030 | 3 | content zeitgeist chrome/content/ | ||
1031 | 4 | overlay chrome://browser/content/browser.xul chrome://zeitgeist/content/zeitgeist.xul | ||
1032 | 0 | 5 | ||
1033 | === added directory 'firefox-40-libzg/extension/chrome/content' | |||
1034 | === added file 'firefox-40-libzg/extension/chrome/content/zeitgeist.png' | |||
1035 | 1 | Binary files firefox-40-libzg/extension/chrome/content/zeitgeist.png 1970-01-01 00:00:00 +0000 and firefox-40-libzg/extension/chrome/content/zeitgeist.png 2011-05-03 18:52:25 +0000 differ | 6 | Binary files firefox-40-libzg/extension/chrome/content/zeitgeist.png 1970-01-01 00:00:00 +0000 and firefox-40-libzg/extension/chrome/content/zeitgeist.png 2011-05-03 18:52:25 +0000 differ |
1036 | === added file 'firefox-40-libzg/extension/chrome/content/zeitgeist.xul' | |||
1037 | --- firefox-40-libzg/extension/chrome/content/zeitgeist.xul 1970-01-01 00:00:00 +0000 | |||
1038 | +++ firefox-40-libzg/extension/chrome/content/zeitgeist.xul 2011-05-03 18:52:25 +0000 | |||
1039 | @@ -0,0 +1,164 @@ | |||
1040 | 1 | <?xml version="1.0"?> | ||
1041 | 2 | <overlay id="zeitgeist" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> | ||
1042 | 3 | |||
1043 | 4 | <script type="application/x-javascript"><![CDATA[ | ||
1044 | 5 | var zeitgeistgluexpcominterface = null; | ||
1045 | 6 | |||
1046 | 7 | var enable_googlemail = false; | ||
1047 | 8 | var googlemail_view_regex = new RegExp("mail\\.google\\.com"); | ||
1048 | 9 | var pbs = Components.classes["@mozilla.org/privatebrowsing;1"] | ||
1049 | 10 | .getService(Components.interfaces.nsIPrivateBrowsingService); | ||
1050 | 11 | |||
1051 | 12 | var debug = function (aMessage) { | ||
1052 | 13 | var consoleService = Components.classes["@mozilla.org/consoleservice;1"] | ||
1053 | 14 | .getService(Components.interfaces.nsIConsoleService); | ||
1054 | 15 | consoleService.logStringMessage("Zeitgeist Extension: " + aMessage); | ||
1055 | 16 | window.dump("Zeitgeist Extension:" + aMessage + "\n"); | ||
1056 | 17 | } | ||
1057 | 18 | |||
1058 | 19 | var make_pattern = function(pattern) { | ||
1059 | 20 | for (item in pattern) { | ||
1060 | 21 | // alert(pattern[item]); | ||
1061 | 22 | pattern[item] = new RegExp(pattern[item]); | ||
1062 | 23 | }; | ||
1063 | 24 | return pattern; | ||
1064 | 25 | }; | ||
1065 | 26 | |||
1066 | 27 | var ZeitgeistPrefObserver = { | ||
1067 | 28 | register: function() { | ||
1068 | 29 | // First we'll need the preference services to look for preferences. | ||
1069 | 30 | var prefService = Components.classes["@mozilla.org/preferences-service;1"] | ||
1070 | 31 | .getService(Components.interfaces.nsIPrefService); | ||
1071 | 32 | |||
1072 | 33 | // For this._branch we ask that the preferences for extensions.myextension. and children | ||
1073 | 34 | this._branch = prefService.getBranch("extensions.zeitgeist."); | ||
1074 | 35 | |||
1075 | 36 | // Now we queue the interface called nsIPrefBranch2. This interface is described as: | ||
1076 | 37 | // "nsIPrefBranch2 allows clients to observe changes to pref values." | ||
1077 | 38 | this._branch.QueryInterface(Components.interfaces.nsIPrefBranch2); | ||
1078 | 39 | |||
1079 | 40 | // Finally add the observer. | ||
1080 | 41 | this._branch.addObserver("", this, false); | ||
1081 | 42 | }, | ||
1082 | 43 | |||
1083 | 44 | unregister: function() { | ||
1084 | 45 | if(!this._branch) return; | ||
1085 | 46 | this._branch.removeObserver("", this); | ||
1086 | 47 | }, | ||
1087 | 48 | |||
1088 | 49 | observe: function(aSubject, aTopic, aData) { | ||
1089 | 50 | if(aTopic != "nsPref:changed") return; | ||
1090 | 51 | // aSubject is the nsIPrefBranch we're observing (after appropriate QI) | ||
1091 | 52 | // aData is the name of the pref that's been changed (relative to aSubject) | ||
1092 | 53 | switch (aData) { | ||
1093 | 54 | case "ignored_uris": | ||
1094 | 55 | // extensions.zeitgeist.ignored_uris was changed | ||
1095 | 56 | pattern = this.get_string(aData); | ||
1096 | 57 | // alert(pattern); | ||
1097 | 58 | ignored_uris = make_pattern(pattern); | ||
1098 | 59 | break; | ||
1099 | 60 | case "enable_googlemail": | ||
1100 | 61 | enable_googlemail = this.get_bool(aData); | ||
1101 | 62 | //alert("changed gmail to"+enable_googlemail); | ||
1102 | 63 | break | ||
1103 | 64 | } | ||
1104 | 65 | }, | ||
1105 | 66 | get_string: function(key) { | ||
1106 | 67 | try { | ||
1107 | 68 | return JSON.parse(this._branch.getCharPref(key)); | ||
1108 | 69 | } catch(err) { | ||
1109 | 70 | // this means there is no such config value | ||
1110 | 71 | // ignoring this error | ||
1111 | 72 | //alert(key + " : " + err); | ||
1112 | 73 | }; | ||
1113 | 74 | }, | ||
1114 | 75 | get_bool: function(key) { | ||
1115 | 76 | try { | ||
1116 | 77 | return this._branch.getBoolPref(key); | ||
1117 | 78 | } catch(err) { | ||
1118 | 79 | // this means there is no such config value | ||
1119 | 80 | // ignoring this error | ||
1120 | 81 | //alert(key + " : " + err); | ||
1121 | 82 | }; | ||
1122 | 83 | } | ||
1123 | 84 | } | ||
1124 | 85 | ZeitgeistPrefObserver.register(); | ||
1125 | 86 | ignored_uris = make_pattern(ZeitgeistPrefObserver.get_string("ignored_uris")); | ||
1126 | 87 | debug("We are ignoring this uris: " + ignored_uris); | ||
1127 | 88 | var enable_googlemail = ZeitgeistPrefObserver.get_bool("enable_googlemail"); | ||
1128 | 89 | debug("the googlemail handler extension is activated? ["+enable_googlemail+"]"); | ||
1129 | 90 | |||
1130 | 91 | ignore_uri = function(uri) { | ||
1131 | 92 | for (pattern in ignored_uris) { | ||
1132 | 93 | if (ignored_uris[pattern].test(uri)) { | ||
1133 | 94 | // alert("ignored " + uri); | ||
1134 | 95 | return true; | ||
1135 | 96 | }; | ||
1136 | 97 | }; | ||
1137 | 98 | return false; | ||
1138 | 99 | }; | ||
1139 | 100 | |||
1140 | 101 | try { | ||
1141 | 102 | if(zeitgeistgluexpcominterface == null) { | ||
1142 | 103 | netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); | ||
1143 | 104 | zeitgeistgluexpcominterface = Components. | ||
1144 | 105 | classes["@zeitgeist-project.com/DATAPROVIDER/firefox-xpcom;1"]. | ||
1145 | 106 | createInstance(Components.interfaces.zeitgeist); | ||
1146 | 107 | } | ||
1147 | 108 | } catch(err) { | ||
1148 | 109 | alert(err); | ||
1149 | 110 | } | ||
1150 | 111 | |||
1151 | 112 | var ZeitgeistProgressListener = { | ||
1152 | 113 | onStateChange: function(aBrowser, aProgress, aRequest, aStateFlags) { | ||
1153 | 114 | var inPrivateBrowsingMode = pbs.privateBrowsingEnabled; | ||
1154 | 115 | if (inPrivateBrowsingMode) return; | ||
1155 | 116 | if (aStateFlags & Components.interfaces.nsIWebProgressListener.STATE_STOP) { | ||
1156 | 117 | var uri = aBrowser.currentURI.spec; | ||
1157 | 118 | var mimetype = aBrowser.contentDocument.contentType; | ||
1158 | 119 | if (aRequest.name == uri && !ignore_uri(uri)) { | ||
1159 | 120 | zeitgeistgluexpcominterface.insert( | ||
1160 | 121 | uri, | ||
1161 | 122 | mimetype, | ||
1162 | 123 | aBrowser.contentTitle | ||
1163 | 124 | ); | ||
1164 | 125 | //alert("THATS WHAT WE HAVE "+enable_googlemail+" | "+uri+" | "+(enable_googlemail & googlemail_view_regex.test(uri))); | ||
1165 | 126 | if (enable_googlemail & googlemail_view_regex.test(uri)) { | ||
1166 | 127 | debug("let's begin the google fun'"); | ||
1167 | 128 | var dmt = aBrowser.contentDocument; | ||
1168 | 129 | var head = dmt.getElementsByTagName("title")[0]; | ||
1169 | 130 | head.addEventListener("DOMSubtreeModified", function(event){ | ||
1170 | 131 | if (dmt.title) { | ||
1171 | 132 | zeitgeistgluexpcominterface.insert( | ||
1172 | 133 | dmt.location.href, | ||
1173 | 134 | dmt.contentType, | ||
1174 | 135 | dmt.title | ||
1175 | 136 | ); | ||
1176 | 137 | }; | ||
1177 | 138 | }, false); | ||
1178 | 139 | } | ||
1179 | 140 | } | ||
1180 | 141 | } | ||
1181 | 142 | }, | ||
1182 | 143 | // we don't implement this methods | ||
1183 | 144 | onStatusChange: function(){}, | ||
1184 | 145 | onLocationChange: function(){}, | ||
1185 | 146 | onSecurityChange: function(){}, | ||
1186 | 147 | onProgressChange: function(){}, | ||
1187 | 148 | }; | ||
1188 | 149 | |||
1189 | 150 | |||
1190 | 151 | var zeitgeist = { | ||
1191 | 152 | init: function() { | ||
1192 | 153 | gBrowser.addTabsProgressListener(ZeitgeistProgressListener); | ||
1193 | 154 | }, | ||
1194 | 155 | uninit: function() { | ||
1195 | 156 | gBrowser.removeTabsProgressListener(ZeitgeistProgressListener); | ||
1196 | 157 | }, | ||
1197 | 158 | }; | ||
1198 | 159 | |||
1199 | 160 | window.addEventListener("load", function() {zeitgeist.init()}, false); | ||
1200 | 161 | window.addEventListener("unload", function() {zeitgeist.uninit()}, false); | ||
1201 | 162 | |||
1202 | 163 | ]]></script> | ||
1203 | 164 | </overlay> | ||
1204 | 0 | 165 | ||
1205 | === added directory 'firefox-40-libzg/extension/components' | |||
1206 | === added file 'firefox-40-libzg/extension/components/Makefile.am' | |||
1207 | --- firefox-40-libzg/extension/components/Makefile.am 1970-01-01 00:00:00 +0000 | |||
1208 | +++ firefox-40-libzg/extension/components/Makefile.am 2011-05-03 18:52:25 +0000 | |||
1209 | @@ -0,0 +1,60 @@ | |||
1210 | 1 | zeitgeistmoduledir = $(libdir)/xul-ext-zeitgeist | ||
1211 | 2 | zeitgeistmodule_LTLIBRARIES = libzeitgeist_xpcom.la | ||
1212 | 3 | zeitgeistmodule_DATA = zeitgeist.xpt | ||
1213 | 4 | |||
1214 | 5 | xul_extdir = $(datadir)/xul-ext-zeitgeist | ||
1215 | 6 | |||
1216 | 7 | libzeitgeist_xpcom_la_SOURCES = \ | ||
1217 | 8 | ZeitgeistComponent.cpp \ | ||
1218 | 9 | ZeitgeistModule.cpp \ | ||
1219 | 10 | $(NULL) | ||
1220 | 11 | |||
1221 | 12 | libzeitgeist_xpcom_la_CXXFLAGS = \ | ||
1222 | 13 | -include "xpcom-config.h" \ | ||
1223 | 14 | $(ZEITGEIST_CFLAGS) \ | ||
1224 | 15 | $(LIBXUL_2_0_CFLAGS) \ | ||
1225 | 16 | $(NULL) | ||
1226 | 17 | |||
1227 | 18 | libzeitgeist_xpcom_la_LIBADD = \ | ||
1228 | 19 | $(ZEITGEIST_LIBS) \ | ||
1229 | 20 | $(LIBXUL_2_0_LIBS) \ | ||
1230 | 21 | $(NULL) | ||
1231 | 22 | |||
1232 | 23 | libzeitgeist_xpcom_la_LDFLAGS = \ | ||
1233 | 24 | -module -avoid-version \ | ||
1234 | 25 | $(NULL) | ||
1235 | 26 | |||
1236 | 27 | BUILT_SOURCES = \ | ||
1237 | 28 | zeitgeist-library.h \ | ||
1238 | 29 | zeitgeist.h \ | ||
1239 | 30 | zeitgeist.xpt \ | ||
1240 | 31 | $(NULL) | ||
1241 | 32 | |||
1242 | 33 | EXTRA_DIST = \ | ||
1243 | 34 | zeitgeist.idl \ | ||
1244 | 35 | zeitgeistextend.h \ | ||
1245 | 36 | $(NULL) | ||
1246 | 37 | |||
1247 | 38 | DISTCLEANFILES = \ | ||
1248 | 39 | $(BUILT_SOURCES) \ | ||
1249 | 40 | $(NULL) | ||
1250 | 41 | |||
1251 | 42 | |||
1252 | 43 | zeitgeist.h: zeitgeist.idl | ||
1253 | 44 | $(AM_V_GEN)$(XPIDL_BIN) -m header -I $(XUL_IDLDIR) -o zeitgeist $< | ||
1254 | 45 | |||
1255 | 46 | zeitgeist.xpt: zeitgeist.idl | ||
1256 | 47 | $(AM_V_GEN)$(XPIDL_BIN) -m typelib -I $(XUL_IDLDIR) -o zeitgeist $< | ||
1257 | 48 | |||
1258 | 49 | zeitgeist-library.h: | ||
1259 | 50 | $(AM_V_GEN)$(LN_S) "`$(PKG_CONFIG) --variable includedir zeitgeist-1.0`/zeitgeist-1.0/zeitgeist.h" $@ | ||
1260 | 51 | |||
1261 | 52 | install-exec-hook: | ||
1262 | 53 | test -d $(DESTDIR)$(xul_extdir) || $(MKDIR_P) $(DESTDIR)$(xul_extdir) | ||
1263 | 54 | test -h $(DESTDIR)$(xul_extdir)/components || $(LN_S) -f $(DESTDIR)$(zeitgeistmoduledir) $(DESTDIR)$(xul_extdir)/components | ||
1264 | 55 | |||
1265 | 56 | # small helper with local install | ||
1266 | 57 | local-install: all | ||
1267 | 58 | cp .libs/libzeitgeist_xpcom.so ./ | ||
1268 | 59 | |||
1269 | 60 | local-uninstall: ; | ||
1270 | 0 | 61 | ||
1271 | === added file 'firefox-40-libzg/extension/components/ZeitgeistComponent.cpp' | |||
1272 | --- firefox-40-libzg/extension/components/ZeitgeistComponent.cpp 1970-01-01 00:00:00 +0000 | |||
1273 | +++ firefox-40-libzg/extension/components/ZeitgeistComponent.cpp 2011-05-03 18:52:25 +0000 | |||
1274 | @@ -0,0 +1,50 @@ | |||
1275 | 1 | /* | ||
1276 | 2 | * ZeitgeistComponent.cpp | ||
1277 | 3 | * This file is part of zeitgeist dataprovider for firefox | ||
1278 | 4 | * | ||
1279 | 5 | * Copyright (C) 2010 - Markus Korn <thekorn@gmx.de> | ||
1280 | 6 | * | ||
1281 | 7 | * zeitgeist dataprovider for firefox is free software; you can redistribute it and/or | ||
1282 | 8 | * modify it under the terms of the GNU Lesser General Public | ||
1283 | 9 | * License as published by the Free Software Foundation; either | ||
1284 | 10 | * version 3 of the License, or (at your option) any later version. | ||
1285 | 11 | * | ||
1286 | 12 | * zeitgeist dataprovider for firefox is distributed in the hope that it will be useful, | ||
1287 | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
1288 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
1289 | 15 | * Lesser General Public License for more details. | ||
1290 | 16 | * | ||
1291 | 17 | * You should have received a copy of the GNU Lesser General Public | ||
1292 | 18 | * License along with this library; if not, write to the Free Software | ||
1293 | 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
1294 | 20 | */ | ||
1295 | 21 | |||
1296 | 22 | |||
1297 | 23 | #include "mozilla/ModuleUtils.h" | ||
1298 | 24 | #include "zeitgeist.h" | ||
1299 | 25 | #include "zeitgeistextend.h" | ||
1300 | 26 | |||
1301 | 27 | NS_GENERIC_FACTORY_CONSTRUCTOR(zeitgeistextend) | ||
1302 | 28 | |||
1303 | 29 | NS_DEFINE_NAMED_CID(ZEITGEIST_COMPONENT_CID); | ||
1304 | 30 | |||
1305 | 31 | static const mozilla::Module::CIDEntry kZeitgeistCIDs[] = { | ||
1306 | 32 | { &kZEITGEIST_COMPONENT_CID, false, NULL, zeitgeistextendConstructor }, | ||
1307 | 33 | { NULL } | ||
1308 | 34 | }; | ||
1309 | 35 | |||
1310 | 36 | static const mozilla::Module::ContractIDEntry kZeitgeistContracts[] = { | ||
1311 | 37 | { ZEITGEIST_COMPONENT_CONTRACTID, &kZEITGEIST_COMPONENT_CID }, | ||
1312 | 38 | { NULL } | ||
1313 | 39 | }; | ||
1314 | 40 | |||
1315 | 41 | static const mozilla::Module kZeitgeistModule = { | ||
1316 | 42 | mozilla::Module::kVersion, | ||
1317 | 43 | kZeitgeistCIDs, | ||
1318 | 44 | kZeitgeistContracts, | ||
1319 | 45 | NULL | ||
1320 | 46 | }; | ||
1321 | 47 | |||
1322 | 48 | NSMODULE_DEFN(ZeitgeistModule) = &kZeitgeistModule; | ||
1323 | 49 | |||
1324 | 50 | NS_IMPL_MOZILLA192_NSGETMODULE(&kZeitgeistModule) | ||
1325 | 0 | 51 | ||
1326 | === added file 'firefox-40-libzg/extension/components/ZeitgeistModule.cpp' | |||
1327 | --- firefox-40-libzg/extension/components/ZeitgeistModule.cpp 1970-01-01 00:00:00 +0000 | |||
1328 | +++ firefox-40-libzg/extension/components/ZeitgeistModule.cpp 2011-05-03 18:52:25 +0000 | |||
1329 | @@ -0,0 +1,86 @@ | |||
1330 | 1 | /* | ||
1331 | 2 | * ZeitgeistModule.cpp | ||
1332 | 3 | * This file is part of zeitgeist dataprovider for firefox | ||
1333 | 4 | * | ||
1334 | 5 | * Copyright (C) 2010 - Markus Korn <thekorn@gmx.de> | ||
1335 | 6 | * Copyright (C) 2010 - Michal Hruby <michal.mhr@gmail.com> | ||
1336 | 7 | * | ||
1337 | 8 | * zeitgeist dataprovider for firefox is free software; you can redistribute it and/or | ||
1338 | 9 | * modify it under the terms of the GNU Lesser General Public | ||
1339 | 10 | * License as published by the Free Software Foundation; either | ||
1340 | 11 | * version 3 of the License, or (at your option) any later version. | ||
1341 | 12 | * | ||
1342 | 13 | * zeitgeist dataprovider for firefox is distributed in the hope that it will be useful, | ||
1343 | 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
1344 | 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
1345 | 16 | * Lesser General Public License for more details. | ||
1346 | 17 | * | ||
1347 | 18 | * You should have received a copy of the GNU Lesser General Public | ||
1348 | 19 | * License along with this library; if not, write to the Free Software | ||
1349 | 20 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
1350 | 21 | */ | ||
1351 | 22 | |||
1352 | 23 | |||
1353 | 24 | #include "zeitgeist.h" | ||
1354 | 25 | #include "zeitgeistextend.h" | ||
1355 | 26 | |||
1356 | 27 | #include <nsStringAPI.h> | ||
1357 | 28 | #include <glib.h> | ||
1358 | 29 | #include <glib-object.h> | ||
1359 | 30 | #include <zeitgeist.h> | ||
1360 | 31 | |||
1361 | 32 | |||
1362 | 33 | using namespace std; | ||
1363 | 34 | |||
1364 | 35 | NS_IMPL_ISUPPORTS1(zeitgeistextend, zeitgeist) | ||
1365 | 36 | |||
1366 | 37 | zeitgeistextend::zeitgeistextend() | ||
1367 | 38 | { | ||
1368 | 39 | g_debug("constructor of zeitgeistextend"); | ||
1369 | 40 | g_type_init (); | ||
1370 | 41 | |||
1371 | 42 | log = (ZeitgeistLog *)g_object_new (ZEITGEIST_TYPE_LOG, NULL); | ||
1372 | 43 | } | ||
1373 | 44 | |||
1374 | 45 | zeitgeistextend::~zeitgeistextend() | ||
1375 | 46 | { | ||
1376 | 47 | g_debug("destructor of zeitgeistextend"); | ||
1377 | 48 | } | ||
1378 | 49 | |||
1379 | 50 | NS_IMETHODIMP zeitgeistextend::Insert(const char *url, | ||
1380 | 51 | const char *mimetype, | ||
1381 | 52 | const nsACString &title_str) | ||
1382 | 53 | { | ||
1383 | 54 | ZeitgeistEvent *event; | ||
1384 | 55 | gchar *title = NULL; | ||
1385 | 56 | |||
1386 | 57 | g_debug("zeitgeist start - creating event"); | ||
1387 | 58 | |||
1388 | 59 | if (!title_str.IsEmpty ()) | ||
1389 | 60 | { | ||
1390 | 61 | gsize title_len = title_str.EndReading () - title_str.BeginReading (); | ||
1391 | 62 | title = g_strndup (title_str.BeginReading (), title_len); | ||
1392 | 63 | } | ||
1393 | 64 | |||
1394 | 65 | event = zeitgeist_event_new_full ( | ||
1395 | 66 | ZEITGEIST_ZG_ACCESS_EVENT, | ||
1396 | 67 | ZEITGEIST_ZG_USER_ACTIVITY, | ||
1397 | 68 | "application://firefox.desktop", | ||
1398 | 69 | zeitgeist_subject_new_full ( | ||
1399 | 70 | url, | ||
1400 | 71 | ZEITGEIST_NFO_WEBSITE, | ||
1401 | 72 | ZEITGEIST_NFO_REMOTE_DATA_OBJECT, | ||
1402 | 73 | mimetype, | ||
1403 | 74 | url, | ||
1404 | 75 | title, | ||
1405 | 76 | "net"), | ||
1406 | 77 | NULL); | ||
1407 | 78 | |||
1408 | 79 | if (title) g_free (title); | ||
1409 | 80 | g_debug("inserting event"); | ||
1410 | 81 | zeitgeist_log_insert_events_no_reply(log, event, NULL); | ||
1411 | 82 | g_debug("zeitgeist end"); | ||
1412 | 83 | |||
1413 | 84 | return NS_OK; | ||
1414 | 85 | } | ||
1415 | 86 | |||
1416 | 0 | 87 | ||
1417 | === added symlink 'firefox-40-libzg/extension/components/zeitgeist-library.h' | |||
1418 | === target is u'/usr/include/zeitgeist-1.0/zeitgeist.h' | |||
1419 | === added file 'firefox-40-libzg/extension/components/zeitgeist.h' | |||
1420 | --- firefox-40-libzg/extension/components/zeitgeist.h 1970-01-01 00:00:00 +0000 | |||
1421 | +++ firefox-40-libzg/extension/components/zeitgeist.h 2011-05-03 18:52:25 +0000 | |||
1422 | @@ -0,0 +1,91 @@ | |||
1423 | 1 | /* | ||
1424 | 2 | * DO NOT EDIT. THIS FILE IS GENERATED FROM zeitgeist.idl | ||
1425 | 3 | */ | ||
1426 | 4 | |||
1427 | 5 | #ifndef __gen_zeitgeist_h__ | ||
1428 | 6 | #define __gen_zeitgeist_h__ | ||
1429 | 7 | |||
1430 | 8 | |||
1431 | 9 | #ifndef __gen_nsISupports_h__ | ||
1432 | 10 | #include "nsISupports.h" | ||
1433 | 11 | #endif | ||
1434 | 12 | |||
1435 | 13 | /* For IDL files that don't want to include root IDL files. */ | ||
1436 | 14 | #ifndef NS_NO_VTABLE | ||
1437 | 15 | #define NS_NO_VTABLE | ||
1438 | 16 | #endif | ||
1439 | 17 | |||
1440 | 18 | /* starting interface: zeitgeist */ | ||
1441 | 19 | #define ZEITGEIST_IID_STR "d879c08c-517d-44f0-83e1-3ef75a527ddf" | ||
1442 | 20 | |||
1443 | 21 | #define ZEITGEIST_IID \ | ||
1444 | 22 | {0xd879c08c, 0x517d, 0x44f0, \ | ||
1445 | 23 | { 0x83, 0xe1, 0x3e, 0xf7, 0x5a, 0x52, 0x7d, 0xdf }} | ||
1446 | 24 | |||
1447 | 25 | class NS_NO_VTABLE NS_SCRIPTABLE zeitgeist : public nsISupports { | ||
1448 | 26 | public: | ||
1449 | 27 | |||
1450 | 28 | NS_DECLARE_STATIC_IID_ACCESSOR(ZEITGEIST_IID) | ||
1451 | 29 | |||
1452 | 30 | /* void insert (in string url, in string mimetype, in AUTF8String title); */ | ||
1453 | 31 | NS_SCRIPTABLE NS_IMETHOD Insert(const char *url, const char *mimetype, const nsACString & title) = 0; | ||
1454 | 32 | |||
1455 | 33 | }; | ||
1456 | 34 | |||
1457 | 35 | NS_DEFINE_STATIC_IID_ACCESSOR(zeitgeist, ZEITGEIST_IID) | ||
1458 | 36 | |||
1459 | 37 | /* Use this macro when declaring classes that implement this interface. */ | ||
1460 | 38 | #define NS_DECL_ZEITGEIST \ | ||
1461 | 39 | NS_SCRIPTABLE NS_IMETHOD Insert(const char *url, const char *mimetype, const nsACString & title); | ||
1462 | 40 | |||
1463 | 41 | /* Use this macro to declare functions that forward the behavior of this interface to another object. */ | ||
1464 | 42 | #define NS_FORWARD_ZEITGEIST(_to) \ | ||
1465 | 43 | NS_SCRIPTABLE NS_IMETHOD Insert(const char *url, const char *mimetype, const nsACString & title) { return _to Insert(url, mimetype, title); } | ||
1466 | 44 | |||
1467 | 45 | /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ | ||
1468 | 46 | #define NS_FORWARD_SAFE_ZEITGEIST(_to) \ | ||
1469 | 47 | NS_SCRIPTABLE NS_IMETHOD Insert(const char *url, const char *mimetype, const nsACString & title) { return !_to ? NS_ERROR_NULL_POINTER : _to->Insert(url, mimetype, title); } | ||
1470 | 48 | |||
1471 | 49 | #if 0 | ||
1472 | 50 | /* Use the code below as a template for the implementation class for this interface. */ | ||
1473 | 51 | |||
1474 | 52 | /* Header file */ | ||
1475 | 53 | class _MYCLASS_ : public zeitgeist | ||
1476 | 54 | { | ||
1477 | 55 | public: | ||
1478 | 56 | NS_DECL_ISUPPORTS | ||
1479 | 57 | NS_DECL_ZEITGEIST | ||
1480 | 58 | |||
1481 | 59 | _MYCLASS_(); | ||
1482 | 60 | |||
1483 | 61 | private: | ||
1484 | 62 | ~_MYCLASS_(); | ||
1485 | 63 | |||
1486 | 64 | protected: | ||
1487 | 65 | /* additional members */ | ||
1488 | 66 | }; | ||
1489 | 67 | |||
1490 | 68 | /* Implementation file */ | ||
1491 | 69 | NS_IMPL_ISUPPORTS1(_MYCLASS_, zeitgeist) | ||
1492 | 70 | |||
1493 | 71 | _MYCLASS_::_MYCLASS_() | ||
1494 | 72 | { | ||
1495 | 73 | /* member initializers and constructor code */ | ||
1496 | 74 | } | ||
1497 | 75 | |||
1498 | 76 | _MYCLASS_::~_MYCLASS_() | ||
1499 | 77 | { | ||
1500 | 78 | /* destructor code */ | ||
1501 | 79 | } | ||
1502 | 80 | |||
1503 | 81 | /* void insert (in string url, in string mimetype, in AUTF8String title); */ | ||
1504 | 82 | NS_IMETHODIMP _MYCLASS_::Insert(const char *url, const char *mimetype, const nsACString & title) | ||
1505 | 83 | { | ||
1506 | 84 | return NS_ERROR_NOT_IMPLEMENTED; | ||
1507 | 85 | } | ||
1508 | 86 | |||
1509 | 87 | /* End of implementation class template. */ | ||
1510 | 88 | #endif | ||
1511 | 89 | |||
1512 | 90 | |||
1513 | 91 | #endif /* __gen_zeitgeist_h__ */ | ||
1514 | 0 | 92 | ||
1515 | === added file 'firefox-40-libzg/extension/components/zeitgeist.idl' | |||
1516 | --- firefox-40-libzg/extension/components/zeitgeist.idl 1970-01-01 00:00:00 +0000 | |||
1517 | +++ firefox-40-libzg/extension/components/zeitgeist.idl 2011-05-03 18:52:25 +0000 | |||
1518 | @@ -0,0 +1,30 @@ | |||
1519 | 1 | /* | ||
1520 | 2 | * zeitgeist.idl | ||
1521 | 3 | * This file is part of zeitgeist dataprovider for firefox | ||
1522 | 4 | * | ||
1523 | 5 | * Copyright (C) 2010 - Markus Korn <thekorn@gmx.de> | ||
1524 | 6 | * Copyright (C) 2010 - Michal Hruby <michal.mhr@gmail.com> | ||
1525 | 7 | * | ||
1526 | 8 | * zeitgeist dataprovider for firefox is free software; you can redistribute it and/or | ||
1527 | 9 | * modify it under the terms of the GNU Lesser General Public | ||
1528 | 10 | * License as published by the Free Software Foundation; either | ||
1529 | 11 | * version 3 of the License, or (at your option) any later version. | ||
1530 | 12 | * | ||
1531 | 13 | * zeitgeist dataprovider for firefox is distributed in the hope that it will be useful, | ||
1532 | 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
1533 | 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
1534 | 16 | * Lesser General Public License for more details. | ||
1535 | 17 | * | ||
1536 | 18 | * You should have received a copy of the GNU Lesser General Public | ||
1537 | 19 | * License along with this library; if not, write to the Free Software | ||
1538 | 20 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
1539 | 21 | */ | ||
1540 | 22 | |||
1541 | 23 | |||
1542 | 24 | #include "nsISupports.idl" | ||
1543 | 25 | [scriptable, uuid(d879c08c-517d-44f0-83e1-3ef75a527ddf)] | ||
1544 | 26 | interface zeitgeist : nsISupports | ||
1545 | 27 | { | ||
1546 | 28 | void insert(in string url, in string mimetype, in AUTF8String title); | ||
1547 | 29 | }; | ||
1548 | 30 | |||
1549 | 0 | 31 | ||
1550 | === added file 'firefox-40-libzg/extension/components/zeitgeist.xpt' | |||
1551 | 1 | Binary files firefox-40-libzg/extension/components/zeitgeist.xpt 1970-01-01 00:00:00 +0000 and firefox-40-libzg/extension/components/zeitgeist.xpt 2011-05-03 18:52:25 +0000 differ | 32 | Binary files firefox-40-libzg/extension/components/zeitgeist.xpt 1970-01-01 00:00:00 +0000 and firefox-40-libzg/extension/components/zeitgeist.xpt 2011-05-03 18:52:25 +0000 differ |
1552 | === added file 'firefox-40-libzg/extension/components/zeitgeistextend.h' | |||
1553 | --- firefox-40-libzg/extension/components/zeitgeistextend.h 1970-01-01 00:00:00 +0000 | |||
1554 | +++ firefox-40-libzg/extension/components/zeitgeistextend.h 2011-05-03 18:52:25 +0000 | |||
1555 | @@ -0,0 +1,45 @@ | |||
1556 | 1 | /* | ||
1557 | 2 | * zeitgeistextend.h | ||
1558 | 3 | * This file is part of zeitgeist dataprovider for firefox | ||
1559 | 4 | * | ||
1560 | 5 | * Copyright (C) 2010 - Markus Korn <thekorn@gmx.de> | ||
1561 | 6 | * | ||
1562 | 7 | * zeitgeist dataprovider for firefox is free software; you can redistribute it and/or | ||
1563 | 8 | * modify it under the terms of the GNU Lesser General Public | ||
1564 | 9 | * License as published by the Free Software Foundation; either | ||
1565 | 10 | * version 3 of the License, or (at your option) any later version. | ||
1566 | 11 | * | ||
1567 | 12 | * zeitgeist dataprovider for firefox is distributed in the hope that it will be useful, | ||
1568 | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
1569 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
1570 | 15 | * Lesser General Public License for more details. | ||
1571 | 16 | * | ||
1572 | 17 | * You should have received a copy of the GNU Lesser General Public | ||
1573 | 18 | * License along with this library; if not, write to the Free Software | ||
1574 | 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
1575 | 20 | */ | ||
1576 | 21 | |||
1577 | 22 | |||
1578 | 23 | #ifndef _ZEITGEISTEXTEND_H_ | ||
1579 | 24 | #define _ZEITGEISTEXTEND_H_ | ||
1580 | 25 | |||
1581 | 26 | #include "zeitgeist.h" | ||
1582 | 27 | #include "zeitgeist-library.h" | ||
1583 | 28 | |||
1584 | 29 | #define ZEITGEIST_COMPONENT_CONTRACTID "@zeitgeist-project.com/DATAPROVIDER/firefox-xpcom;1" | ||
1585 | 30 | #define ZEITGEIST_COMPONENT_CLASSNAME "zeitgeist dataprovider for firefox" | ||
1586 | 31 | #define ZEITGEIST_COMPONENT_CID { 0xd879c08c, 0x517d, 0x44f0, { 0x83, 0xe1, 0x3e, 0xf7, 0x5a, 0x52, 0x7d, 0xdf } } | ||
1587 | 32 | |||
1588 | 33 | //d879c08c-517d-44f0-83e1-3ef75a527ddf | ||
1589 | 34 | class zeitgeistextend : public zeitgeist | ||
1590 | 35 | { | ||
1591 | 36 | public: | ||
1592 | 37 | NS_DECL_ISUPPORTS | ||
1593 | 38 | NS_DECL_ZEITGEIST | ||
1594 | 39 | |||
1595 | 40 | zeitgeistextend(); | ||
1596 | 41 | virtual ~zeitgeistextend(); | ||
1597 | 42 | ZeitgeistLog *log; | ||
1598 | 43 | |||
1599 | 44 | }; | ||
1600 | 45 | #endif | ||
1601 | 0 | 46 | ||
1602 | === added directory 'firefox-40-libzg/extension/defaults' | |||
1603 | === added directory 'firefox-40-libzg/extension/defaults/preferences' | |||
1604 | === added file 'firefox-40-libzg/extension/defaults/preferences/zeitgeist.js' | |||
1605 | --- firefox-40-libzg/extension/defaults/preferences/zeitgeist.js 1970-01-01 00:00:00 +0000 | |||
1606 | +++ firefox-40-libzg/extension/defaults/preferences/zeitgeist.js 2011-05-03 18:52:25 +0000 | |||
1607 | @@ -0,0 +1,2 @@ | |||
1608 | 1 | pref("extensions.zeitgeist.ignored_uris", "[\"^about:*\"]"); | ||
1609 | 2 | pref("extensions.zeitgeist.enable_googlemail", false); | ||
1610 | 0 | 3 | ||
1611 | === added file 'firefox-40-libzg/extension/install.rdf' | |||
1612 | --- firefox-40-libzg/extension/install.rdf 1970-01-01 00:00:00 +0000 | |||
1613 | +++ firefox-40-libzg/extension/install.rdf 2011-05-03 18:52:25 +0000 | |||
1614 | @@ -0,0 +1,28 @@ | |||
1615 | 1 | <?xml version="1.0"?> | ||
1616 | 2 | |||
1617 | 3 | <RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | ||
1618 | 4 | xmlns:em="http://www.mozilla.org/2004/em-rdf#"> | ||
1619 | 5 | |||
1620 | 6 | <Description about="urn:mozilla:install-manifest"> | ||
1621 | 7 | <em:id>xpcom_firefox@zeitgeist-project.com</em:id> | ||
1622 | 8 | <em:version>0.3</em:version> | ||
1623 | 9 | <em:type>2</em:type> | ||
1624 | 10 | |||
1625 | 11 | <!-- Target Application this extension can install into, | ||
1626 | 12 | with minimum and maximum supported versions. --> | ||
1627 | 13 | <em:targetApplication> | ||
1628 | 14 | <Description> | ||
1629 | 15 | <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> | ||
1630 | 16 | <em:minVersion>4.0</em:minVersion> | ||
1631 | 17 | <em:maxVersion>4.0.*</em:maxVersion> | ||
1632 | 18 | </Description> | ||
1633 | 19 | </em:targetApplication> | ||
1634 | 20 | |||
1635 | 21 | <!-- Front End MetaData --> | ||
1636 | 22 | <em:name>zeitgeist</em:name> | ||
1637 | 23 | <em:description>dataprovider for the zeitgeist framework, using xpcom and libzeitgeist</em:description> | ||
1638 | 24 | <em:creator>Markus Korn</em:creator> | ||
1639 | 25 | <em:homepageURL>http://launchpad.net/zeitgeist</em:homepageURL> | ||
1640 | 26 | <em:iconURL>chrome://zeitgeist/content/zeitgeist.png</em:iconURL> | ||
1641 | 27 | </Description> | ||
1642 | 28 | </RDF> | ||
1643 | 0 | 29 | ||
1644 | === added file 'firefox-40-libzg/extension/license.txt' | |||
1645 | --- firefox-40-libzg/extension/license.txt 1970-01-01 00:00:00 +0000 | |||
1646 | +++ firefox-40-libzg/extension/license.txt 2011-05-03 18:52:25 +0000 | |||
1647 | @@ -0,0 +1,166 @@ | |||
1648 | 1 | GNU LESSER GENERAL PUBLIC LICENSE | ||
1649 | 2 | Version 3, 29 June 2007 | ||
1650 | 3 | |||
1651 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> | ||
1652 | 5 | Everyone is permitted to copy and distribute verbatim copies | ||
1653 | 6 | of this license document, but changing it is not allowed. | ||
1654 | 7 | |||
1655 | 8 | |||
1656 | 9 | This version of the GNU Lesser General Public License incorporates | ||
1657 | 10 | the terms and conditions of version 3 of the GNU General Public | ||
1658 | 11 | License, supplemented by the additional permissions listed below. | ||
1659 | 12 | |||
1660 | 13 | 0. Additional Definitions. | ||
1661 | 14 | |||
1662 | 15 | As used herein, "this License" refers to version 3 of the GNU Lesser | ||
1663 | 16 | General Public License, and the "GNU GPL" refers to version 3 of the GNU | ||
1664 | 17 | General Public License. | ||
1665 | 18 | |||
1666 | 19 | "The Library" refers to a covered work governed by this License, | ||
1667 | 20 | other than an Application or a Combined Work as defined below. | ||
1668 | 21 | |||
1669 | 22 | An "Application" is any work that makes use of an interface provided | ||
1670 | 23 | by the Library, but which is not otherwise based on the Library. | ||
1671 | 24 | Defining a subclass of a class defined by the Library is deemed a mode | ||
1672 | 25 | of using an interface provided by the Library. | ||
1673 | 26 | |||
1674 | 27 | A "Combined Work" is a work produced by combining or linking an | ||
1675 | 28 | Application with the Library. The particular version of the Library | ||
1676 | 29 | with which the Combined Work was made is also called the "Linked | ||
1677 | 30 | Version". | ||
1678 | 31 | |||
1679 | 32 | The "Minimal Corresponding Source" for a Combined Work means the | ||
1680 | 33 | Corresponding Source for the Combined Work, excluding any source code | ||
1681 | 34 | for portions of the Combined Work that, considered in isolation, are | ||
1682 | 35 | based on the Application, and not on the Linked Version. | ||
1683 | 36 | |||
1684 | 37 | The "Corresponding Application Code" for a Combined Work means the | ||
1685 | 38 | object code and/or source code for the Application, including any data | ||
1686 | 39 | and utility programs needed for reproducing the Combined Work from the | ||
1687 | 40 | Application, but excluding the System Libraries of the Combined Work. | ||
1688 | 41 | |||
1689 | 42 | 1. Exception to Section 3 of the GNU GPL. | ||
1690 | 43 | |||
1691 | 44 | You may convey a covered work under sections 3 and 4 of this License | ||
1692 | 45 | without being bound by section 3 of the GNU GPL. | ||
1693 | 46 | |||
1694 | 47 | 2. Conveying Modified Versions. | ||
1695 | 48 | |||
1696 | 49 | If you modify a copy of the Library, and, in your modifications, a | ||
1697 | 50 | facility refers to a function or data to be supplied by an Application | ||
1698 | 51 | that uses the facility (other than as an argument passed when the | ||
1699 | 52 | facility is invoked), then you may convey a copy of the modified | ||
1700 | 53 | version: | ||
1701 | 54 | |||
1702 | 55 | a) under this License, provided that you make a good faith effort to | ||
1703 | 56 | ensure that, in the event an Application does not supply the | ||
1704 | 57 | function or data, the facility still operates, and performs | ||
1705 | 58 | whatever part of its purpose remains meaningful, or | ||
1706 | 59 | |||
1707 | 60 | b) under the GNU GPL, with none of the additional permissions of | ||
1708 | 61 | this License applicable to that copy. | ||
1709 | 62 | |||
1710 | 63 | 3. Object Code Incorporating Material from Library Header Files. | ||
1711 | 64 | |||
1712 | 65 | The object code form of an Application may incorporate material from | ||
1713 | 66 | a header file that is part of the Library. You may convey such object | ||
1714 | 67 | code under terms of your choice, provided that, if the incorporated | ||
1715 | 68 | material is not limited to numerical parameters, data structure | ||
1716 | 69 | layouts and accessors, or small macros, inline functions and templates | ||
1717 | 70 | (ten or fewer lines in length), you do both of the following: | ||
1718 | 71 | |||
1719 | 72 | a) Give prominent notice with each copy of the object code that the | ||
1720 | 73 | Library is used in it and that the Library and its use are | ||
1721 | 74 | covered by this License. | ||
1722 | 75 | |||
1723 | 76 | b) Accompany the object code with a copy of the GNU GPL and this license | ||
1724 | 77 | document. | ||
1725 | 78 | |||
1726 | 79 | 4. Combined Works. | ||
1727 | 80 | |||
1728 | 81 | You may convey a Combined Work under terms of your choice that, | ||
1729 | 82 | taken together, effectively do not restrict modification of the | ||
1730 | 83 | portions of the Library contained in the Combined Work and reverse | ||
1731 | 84 | engineering for debugging such modifications, if you also do each of | ||
1732 | 85 | the following: | ||
1733 | 86 | |||
1734 | 87 | a) Give prominent notice with each copy of the Combined Work that | ||
1735 | 88 | the Library is used in it and that the Library and its use are | ||
1736 | 89 | covered by this License. | ||
1737 | 90 | |||
1738 | 91 | b) Accompany the Combined Work with a copy of the GNU GPL and this license | ||
1739 | 92 | document. | ||
1740 | 93 | |||
1741 | 94 | c) For a Combined Work that displays copyright notices during | ||
1742 | 95 | execution, include the copyright notice for the Library among | ||
1743 | 96 | these notices, as well as a reference directing the user to the | ||
1744 | 97 | copies of the GNU GPL and this license document. | ||
1745 | 98 | |||
1746 | 99 | d) Do one of the following: | ||
1747 | 100 | |||
1748 | 101 | 0) Convey the Minimal Corresponding Source under the terms of this | ||
1749 | 102 | License, and the Corresponding Application Code in a form | ||
1750 | 103 | suitable for, and under terms that permit, the user to | ||
1751 | 104 | recombine or relink the Application with a modified version of | ||
1752 | 105 | the Linked Version to produce a modified Combined Work, in the | ||
1753 | 106 | manner specified by section 6 of the GNU GPL for conveying | ||
1754 | 107 | Corresponding Source. | ||
1755 | 108 | |||
1756 | 109 | 1) Use a suitable shared library mechanism for linking with the | ||
1757 | 110 | Library. A suitable mechanism is one that (a) uses at run time | ||
1758 | 111 | a copy of the Library already present on the user's computer | ||
1759 | 112 | system, and (b) will operate properly with a modified version | ||
1760 | 113 | of the Library that is interface-compatible with the Linked | ||
1761 | 114 | Version. | ||
1762 | 115 | |||
1763 | 116 | e) Provide Installation Information, but only if you would otherwise | ||
1764 | 117 | be required to provide such information under section 6 of the | ||
1765 | 118 | GNU GPL, and only to the extent that such information is | ||
1766 | 119 | necessary to install and execute a modified version of the | ||
1767 | 120 | Combined Work produced by recombining or relinking the | ||
1768 | 121 | Application with a modified version of the Linked Version. (If | ||
1769 | 122 | you use option 4d0, the Installation Information must accompany | ||
1770 | 123 | the Minimal Corresponding Source and Corresponding Application | ||
1771 | 124 | Code. If you use option 4d1, you must provide the Installation | ||
1772 | 125 | Information in the manner specified by section 6 of the GNU GPL | ||
1773 | 126 | for conveying Corresponding Source.) | ||
1774 | 127 | |||
1775 | 128 | 5. Combined Libraries. | ||
1776 | 129 | |||
1777 | 130 | You may place library facilities that are a work based on the | ||
1778 | 131 | Library side by side in a single library together with other library | ||
1779 | 132 | facilities that are not Applications and are not covered by this | ||
1780 | 133 | License, and convey such a combined library under terms of your | ||
1781 | 134 | choice, if you do both of the following: | ||
1782 | 135 | |||
1783 | 136 | a) Accompany the combined library with a copy of the same work based | ||
1784 | 137 | on the Library, uncombined with any other library facilities, | ||
1785 | 138 | conveyed under the terms of this License. | ||
1786 | 139 | |||
1787 | 140 | b) Give prominent notice with the combined library that part of it | ||
1788 | 141 | is a work based on the Library, and explaining where to find the | ||
1789 | 142 | accompanying uncombined form of the same work. | ||
1790 | 143 | |||
1791 | 144 | 6. Revised Versions of the GNU Lesser General Public License. | ||
1792 | 145 | |||
1793 | 146 | The Free Software Foundation may publish revised and/or new versions | ||
1794 | 147 | of the GNU Lesser General Public License from time to time. Such new | ||
1795 | 148 | versions will be similar in spirit to the present version, but may | ||
1796 | 149 | differ in detail to address new problems or concerns. | ||
1797 | 150 | |||
1798 | 151 | Each version is given a distinguishing version number. If the | ||
1799 | 152 | Library as you received it specifies that a certain numbered version | ||
1800 | 153 | of the GNU Lesser General Public License "or any later version" | ||
1801 | 154 | applies to it, you have the option of following the terms and | ||
1802 | 155 | conditions either of that published version or of any later version | ||
1803 | 156 | published by the Free Software Foundation. If the Library as you | ||
1804 | 157 | received it does not specify a version number of the GNU Lesser | ||
1805 | 158 | General Public License, you may choose any version of the GNU Lesser | ||
1806 | 159 | General Public License ever published by the Free Software Foundation. | ||
1807 | 160 | |||
1808 | 161 | If the Library as you received it specifies that a proxy can decide | ||
1809 | 162 | whether future versions of the GNU Lesser General Public License shall | ||
1810 | 163 | apply, that proxy's public statement of acceptance of any version is | ||
1811 | 164 | permanent authorization for you to choose that version for the | ||
1812 | 165 | Library. | ||
1813 | 166 | |||
1814 | 0 | 167 | ||
1815 | === removed directory 'firefox-libzg' | |||
1816 | === removed file 'firefox-libzg/Makefile.am' | |||
1817 | --- firefox-libzg/Makefile.am 2011-05-02 19:02:52 +0000 | |||
1818 | +++ firefox-libzg/Makefile.am 1970-01-01 00:00:00 +0000 | |||
1819 | @@ -1,16 +0,0 @@ | |||
1820 | 1 | SUBDIRS = extension | ||
1821 | 2 | |||
1822 | 3 | # identifier for the FF profile in which 'make install' installs this extension | ||
1823 | 4 | TARGET_PROFILE = *default* | ||
1824 | 5 | |||
1825 | 6 | local-install: all | ||
1826 | 7 | $(MAKE) -C extension $@ | ||
1827 | 8 | unzip -o ZeitgeistDataprovider.xpi -d ~/xpcom_firefox\@zeitgeist-project.com | ||
1828 | 9 | cd ~/.mozilla/firefox/$(TARGET_PROFILE)/ && mkdir -p extensions | ||
1829 | 10 | cp -r ~/xpcom_firefox\@zeitgeist-project.com/ ~/.mozilla/firefox/$(TARGET_PROFILE)/extensions/ | ||
1830 | 11 | |||
1831 | 12 | local-uninstall: | ||
1832 | 13 | $(MAKE) -C extension $@ | ||
1833 | 14 | -rm -rf ~/.mozilla/firefox/$(TARGET_PROFILE)/extensions/xpcom_firefox\@zeitgeist-project.com | ||
1834 | 15 | -rm -rf ~/.mozilla/firefox/$(TARGET_PROFILE)/extensions/ZeitgeistDataprovider.xpi | ||
1835 | 16 | |||
1836 | 17 | 0 | ||
1837 | === removed file 'firefox-libzg/README' | |||
1838 | --- firefox-libzg/README 2010-05-11 15:51:49 +0000 | |||
1839 | +++ firefox-libzg/README 1970-01-01 00:00:00 +0000 | |||
1840 | @@ -1,43 +0,0 @@ | |||
1841 | 1 | Links | ||
1842 | 2 | ===== | ||
1843 | 3 | |||
1844 | 4 | Code is based on: | ||
1845 | 5 | http://www.ibm.com/developerworks/opensource/library/os-xpcomfirefox/index.html | ||
1846 | 6 | |||
1847 | 7 | Other useful ressources: | ||
1848 | 8 | https://developer.mozilla.org/en/XPCOM_Glue | ||
1849 | 9 | http://www.iosart.com/firefox/xpcom/ | ||
1850 | 10 | http://www.ibm.com/developerworks/webservices/library/co-xpcom5.html (with link to the complete series) | ||
1851 | 11 | http://blog.lazytech.info/2007/05/26/xpcom-javascript-function-call/ (about implementing JS callbacks) | ||
1852 | 12 | |||
1853 | 13 | |||
1854 | 14 | Unknown symbols in ubuntu lucid | ||
1855 | 15 | =============================== | ||
1856 | 16 | |||
1857 | 17 | On ubuntu lucid `ldd -r *.so` shows libxpcom as unknown symbol, to fix this create | ||
1858 | 18 | |||
1859 | 19 | /etc/ld.so.conf.d/libxpcom.conf | ||
1860 | 20 | |||
1861 | 21 | with this content: | ||
1862 | 22 | |||
1863 | 23 | # for xpcom | ||
1864 | 24 | /usr/lib/xulrunner-1.9.2.3 | ||
1865 | 25 | |||
1866 | 26 | |||
1867 | 27 | And rebuild the cache | ||
1868 | 28 | $ sudo ldconfig | ||
1869 | 29 | |||
1870 | 30 | You have to do the same for libzeitgeist! | ||
1871 | 31 | |||
1872 | 32 | |||
1873 | 33 | Component UUID | ||
1874 | 34 | ============== | ||
1875 | 35 | |||
1876 | 36 | the uuid for the component is | ||
1877 | 37 | d879c08c-517d-44f0-83e1-3ef75a527ddf | ||
1878 | 38 | |||
1879 | 39 | |||
1880 | 40 | TODO | ||
1881 | 41 | ==== | ||
1882 | 42 | * add JS callback to .insert() so user can be notified of issues while inserting event | ||
1883 | 43 | * add events for downloads, see https://developer.mozilla.org/en/nsIDownloadProgressListener | ||
1884 | 44 | 0 | ||
1885 | === removed directory 'firefox-libzg/extension' | |||
1886 | === removed file 'firefox-libzg/extension/Makefile.am' | |||
1887 | --- firefox-libzg/extension/Makefile.am 2011-01-25 17:08:17 +0000 | |||
1888 | +++ firefox-libzg/extension/Makefile.am 1970-01-01 00:00:00 +0000 | |||
1889 | @@ -1,42 +0,0 @@ | |||
1890 | 1 | SUBDIRS = components | ||
1891 | 2 | |||
1892 | 3 | extensiondir = $(datadir)/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384} | ||
1893 | 4 | EXTENSIONS_SYMLINK = $(extensiondir)/xpcom_firefox@zeitgeist-project.com | ||
1894 | 5 | |||
1895 | 6 | xul_extdir = $(datadir)/xul-ext-zeitgeist | ||
1896 | 7 | dist_xul_ext_DATA = \ | ||
1897 | 8 | license.txt \ | ||
1898 | 9 | chrome.manifest \ | ||
1899 | 10 | install.rdf \ | ||
1900 | 11 | $(NULL) | ||
1901 | 12 | |||
1902 | 13 | contentdir = $(xul_extdir)/chrome/content | ||
1903 | 14 | dist_content_DATA = \ | ||
1904 | 15 | chrome/content/zeitgeist.xul \ | ||
1905 | 16 | chrome/content/zeitgeist.png \ | ||
1906 | 17 | $(NULL) | ||
1907 | 18 | |||
1908 | 19 | prefsdir = $(xul_extdir)/defaults/preferences | ||
1909 | 20 | dist_prefs_DATA = \ | ||
1910 | 21 | defaults/preferences/zeitgeist.js \ | ||
1911 | 22 | $(NULL) | ||
1912 | 23 | |||
1913 | 24 | install-exec-hook: | ||
1914 | 25 | $(MKDIR_P) $(DESTDIR)$(extensiondir) | ||
1915 | 26 | test -h "$(DESTDIR)$(EXTENSIONS_SYMLINK)" || $(LN_S) -f "$(DESTDIR)$(xul_extdir)" "$(DESTDIR)$(EXTENSIONS_SYMLINK)" | ||
1916 | 27 | |||
1917 | 28 | # we want to allow also local install | ||
1918 | 29 | EXTENSION_CONTENT = \ | ||
1919 | 30 | $(dist_xul_ext_DATA) \ | ||
1920 | 31 | defaults \ | ||
1921 | 32 | chrome \ | ||
1922 | 33 | components/libzeitgeist_xpcom.so \ | ||
1923 | 34 | components/zeitgeist.xpt \ | ||
1924 | 35 | $(NULL) | ||
1925 | 36 | |||
1926 | 37 | local-install: all | ||
1927 | 38 | $(MAKE) -C components $@ | ||
1928 | 39 | zip -r ../ZeitgeistDataprovider.xpi $(EXTENSION_CONTENT) | ||
1929 | 40 | |||
1930 | 41 | local-uninstall: | ||
1931 | 42 | $(MAKE) -C components $@ | ||
1932 | 43 | 0 | ||
1933 | === removed directory 'firefox-libzg/extension/chrome' | |||
1934 | === removed file 'firefox-libzg/extension/chrome.manifest' | |||
1935 | --- firefox-libzg/extension/chrome.manifest 2011-04-29 20:41:04 +0000 | |||
1936 | +++ firefox-libzg/extension/chrome.manifest 1970-01-01 00:00:00 +0000 | |||
1937 | @@ -1,4 +0,0 @@ | |||
1938 | 1 | binary-component components/libzeitgeist_xpcom.so | ||
1939 | 2 | interfaces components/zeitgeist.xpt | ||
1940 | 3 | content zeitgeist chrome/content/ | ||
1941 | 4 | overlay chrome://browser/content/browser.xul chrome://zeitgeist/content/zeitgeist.xul | ||
1942 | 5 | 0 | ||
1943 | === removed directory 'firefox-libzg/extension/chrome/content' | |||
1944 | === removed file 'firefox-libzg/extension/chrome/content/zeitgeist.png' | |||
1945 | 6 | Binary files firefox-libzg/extension/chrome/content/zeitgeist.png 2010-05-16 08:58:25 +0000 and firefox-libzg/extension/chrome/content/zeitgeist.png 1970-01-01 00:00:00 +0000 differ | 1 | Binary files firefox-libzg/extension/chrome/content/zeitgeist.png 2010-05-16 08:58:25 +0000 and firefox-libzg/extension/chrome/content/zeitgeist.png 1970-01-01 00:00:00 +0000 differ |
1946 | === removed file 'firefox-libzg/extension/chrome/content/zeitgeist.xul' | |||
1947 | --- firefox-libzg/extension/chrome/content/zeitgeist.xul 2011-01-25 18:26:06 +0000 | |||
1948 | +++ firefox-libzg/extension/chrome/content/zeitgeist.xul 1970-01-01 00:00:00 +0000 | |||
1949 | @@ -1,164 +0,0 @@ | |||
1950 | 1 | <?xml version="1.0"?> | ||
1951 | 2 | <overlay id="zeitgeist" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> | ||
1952 | 3 | |||
1953 | 4 | <script type="application/x-javascript"><![CDATA[ | ||
1954 | 5 | var zeitgeistgluexpcominterface = null; | ||
1955 | 6 | |||
1956 | 7 | var enable_googlemail = false; | ||
1957 | 8 | var googlemail_view_regex = new RegExp("mail\\.google\\.com"); | ||
1958 | 9 | var pbs = Components.classes["@mozilla.org/privatebrowsing;1"] | ||
1959 | 10 | .getService(Components.interfaces.nsIPrivateBrowsingService); | ||
1960 | 11 | |||
1961 | 12 | var debug = function (aMessage) { | ||
1962 | 13 | var consoleService = Components.classes["@mozilla.org/consoleservice;1"] | ||
1963 | 14 | .getService(Components.interfaces.nsIConsoleService); | ||
1964 | 15 | consoleService.logStringMessage("Zeitgeist Extension: " + aMessage); | ||
1965 | 16 | window.dump("Zeitgeist Extension:" + aMessage + "\n"); | ||
1966 | 17 | } | ||
1967 | 18 | |||
1968 | 19 | var make_pattern = function(pattern) { | ||
1969 | 20 | for (item in pattern) { | ||
1970 | 21 | // alert(pattern[item]); | ||
1971 | 22 | pattern[item] = new RegExp(pattern[item]); | ||
1972 | 23 | }; | ||
1973 | 24 | return pattern; | ||
1974 | 25 | }; | ||
1975 | 26 | |||
1976 | 27 | var ZeitgeistPrefObserver = { | ||
1977 | 28 | register: function() { | ||
1978 | 29 | // First we'll need the preference services to look for preferences. | ||
1979 | 30 | var prefService = Components.classes["@mozilla.org/preferences-service;1"] | ||
1980 | 31 | .getService(Components.interfaces.nsIPrefService); | ||
1981 | 32 | |||
1982 | 33 | // For this._branch we ask that the preferences for extensions.myextension. and children | ||
1983 | 34 | this._branch = prefService.getBranch("extensions.zeitgeist."); | ||
1984 | 35 | |||
1985 | 36 | // Now we queue the interface called nsIPrefBranch2. This interface is described as: | ||
1986 | 37 | // "nsIPrefBranch2 allows clients to observe changes to pref values." | ||
1987 | 38 | this._branch.QueryInterface(Components.interfaces.nsIPrefBranch2); | ||
1988 | 39 | |||
1989 | 40 | // Finally add the observer. | ||
1990 | 41 | this._branch.addObserver("", this, false); | ||
1991 | 42 | }, | ||
1992 | 43 | |||
1993 | 44 | unregister: function() { | ||
1994 | 45 | if(!this._branch) return; | ||
1995 | 46 | this._branch.removeObserver("", this); | ||
1996 | 47 | }, | ||
1997 | 48 | |||
1998 | 49 | observe: function(aSubject, aTopic, aData) { | ||
1999 | 50 | if(aTopic != "nsPref:changed") return; | ||
2000 | 51 | // aSubject is the nsIPrefBranch we're observing (after appropriate QI) | ||
2001 | 52 | // aData is the name of the pref that's been changed (relative to aSubject) | ||
2002 | 53 | switch (aData) { | ||
2003 | 54 | case "ignored_uris": | ||
2004 | 55 | // extensions.zeitgeist.ignored_uris was changed | ||
2005 | 56 | pattern = this.get_string(aData); | ||
2006 | 57 | // alert(pattern); | ||
2007 | 58 | ignored_uris = make_pattern(pattern); | ||
2008 | 59 | break; | ||
2009 | 60 | case "enable_googlemail": | ||
2010 | 61 | enable_googlemail = this.get_bool(aData); | ||
2011 | 62 | //alert("changed gmail to"+enable_googlemail); | ||
2012 | 63 | break | ||
2013 | 64 | } | ||
2014 | 65 | }, | ||
2015 | 66 | get_string: function(key) { | ||
2016 | 67 | try { | ||
2017 | 68 | return JSON.parse(this._branch.getCharPref(key)); | ||
2018 | 69 | } catch(err) { | ||
2019 | 70 | // this means there is no such config value | ||
2020 | 71 | // ignoring this error | ||
2021 | 72 | //alert(key + " : " + err); | ||
2022 | 73 | }; | ||
2023 | 74 | }, | ||
2024 | 75 | get_bool: function(key) { | ||
2025 | 76 | try { | ||
2026 | 77 | return this._branch.getBoolPref(key); | ||
2027 | 78 | } catch(err) { | ||
2028 | 79 | // this means there is no such config value | ||
2029 | 80 | // ignoring this error | ||
2030 | 81 | //alert(key + " : " + err); | ||
2031 | 82 | }; | ||
2032 | 83 | } | ||
2033 | 84 | } | ||
2034 | 85 | ZeitgeistPrefObserver.register(); | ||
2035 | 86 | ignored_uris = make_pattern(ZeitgeistPrefObserver.get_string("ignored_uris")); | ||
2036 | 87 | debug("We are ignoring this uris: " + ignored_uris); | ||
2037 | 88 | var enable_googlemail = ZeitgeistPrefObserver.get_bool("enable_googlemail"); | ||
2038 | 89 | debug("the googlemail handler extension is activated? ["+enable_googlemail+"]"); | ||
2039 | 90 | |||
2040 | 91 | ignore_uri = function(uri) { | ||
2041 | 92 | for (pattern in ignored_uris) { | ||
2042 | 93 | if (ignored_uris[pattern].test(uri)) { | ||
2043 | 94 | // alert("ignored " + uri); | ||
2044 | 95 | return true; | ||
2045 | 96 | }; | ||
2046 | 97 | }; | ||
2047 | 98 | return false; | ||
2048 | 99 | }; | ||
2049 | 100 | |||
2050 | 101 | try { | ||
2051 | 102 | if(zeitgeistgluexpcominterface == null) { | ||
2052 | 103 | netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); | ||
2053 | 104 | zeitgeistgluexpcominterface = Components. | ||
2054 | 105 | classes["@zeitgeist-project.com/DATAPROVIDER/firefox-xpcom;1"]. | ||
2055 | 106 | createInstance(Components.interfaces.zeitgeist); | ||
2056 | 107 | } | ||
2057 | 108 | } catch(err) { | ||
2058 | 109 | alert(err); | ||
2059 | 110 | } | ||
2060 | 111 | |||
2061 | 112 | var ZeitgeistProgressListener = { | ||
2062 | 113 | onStateChange: function(aBrowser, aProgress, aRequest, aStateFlags) { | ||
2063 | 114 | var inPrivateBrowsingMode = pbs.privateBrowsingEnabled; | ||
2064 | 115 | if (inPrivateBrowsingMode) return; | ||
2065 | 116 | if (aStateFlags & Components.interfaces.nsIWebProgressListener.STATE_STOP) { | ||
2066 | 117 | var uri = aBrowser.currentURI.spec; | ||
2067 | 118 | var mimetype = aBrowser.contentDocument.contentType; | ||
2068 | 119 | if (aRequest.name == uri && !ignore_uri(uri)) { | ||
2069 | 120 | zeitgeistgluexpcominterface.insert( | ||
2070 | 121 | uri, | ||
2071 | 122 | mimetype, | ||
2072 | 123 | aBrowser.contentTitle | ||
2073 | 124 | ); | ||
2074 | 125 | //alert("THATS WHAT WE HAVE "+enable_googlemail+" | "+uri+" | "+(enable_googlemail & googlemail_view_regex.test(uri))); | ||
2075 | 126 | if (enable_googlemail & googlemail_view_regex.test(uri)) { | ||
2076 | 127 | debug("let's begin the google fun'"); | ||
2077 | 128 | var dmt = aBrowser.contentDocument; | ||
2078 | 129 | var head = dmt.getElementsByTagName("title")[0]; | ||
2079 | 130 | head.addEventListener("DOMSubtreeModified", function(event){ | ||
2080 | 131 | if (dmt.title) { | ||
2081 | 132 | zeitgeistgluexpcominterface.insert( | ||
2082 | 133 | dmt.location.href, | ||
2083 | 134 | dmt.contentType, | ||
2084 | 135 | dmt.title | ||
2085 | 136 | ); | ||
2086 | 137 | }; | ||
2087 | 138 | }, false); | ||
2088 | 139 | } | ||
2089 | 140 | } | ||
2090 | 141 | } | ||
2091 | 142 | }, | ||
2092 | 143 | // we don't implement this methods | ||
2093 | 144 | onStatusChange: function(){}, | ||
2094 | 145 | onLocationChange: function(){}, | ||
2095 | 146 | onSecurityChange: function(){}, | ||
2096 | 147 | onProgressChange: function(){}, | ||
2097 | 148 | }; | ||
2098 | 149 | |||
2099 | 150 | |||
2100 | 151 | var zeitgeist = { | ||
2101 | 152 | init: function() { | ||
2102 | 153 | gBrowser.addTabsProgressListener(ZeitgeistProgressListener); | ||
2103 | 154 | }, | ||
2104 | 155 | uninit: function() { | ||
2105 | 156 | gBrowser.removeTabsProgressListener(ZeitgeistProgressListener); | ||
2106 | 157 | }, | ||
2107 | 158 | }; | ||
2108 | 159 | |||
2109 | 160 | window.addEventListener("load", function() {zeitgeist.init()}, false); | ||
2110 | 161 | window.addEventListener("unload", function() {zeitgeist.uninit()}, false); | ||
2111 | 162 | |||
2112 | 163 | ]]></script> | ||
2113 | 164 | </overlay> | ||
2114 | 165 | 0 | ||
2115 | === removed directory 'firefox-libzg/extension/components' | |||
2116 | === removed file 'firefox-libzg/extension/components/Makefile.am' | |||
2117 | --- firefox-libzg/extension/components/Makefile.am 2011-05-02 18:47:16 +0000 | |||
2118 | +++ firefox-libzg/extension/components/Makefile.am 1970-01-01 00:00:00 +0000 | |||
2119 | @@ -1,60 +0,0 @@ | |||
2120 | 1 | zeitgeistmoduledir = $(libdir)/xul-ext-zeitgeist | ||
2121 | 2 | zeitgeistmodule_LTLIBRARIES = libzeitgeist_xpcom.la | ||
2122 | 3 | zeitgeistmodule_DATA = zeitgeist.xpt | ||
2123 | 4 | |||
2124 | 5 | xul_extdir = $(datadir)/xul-ext-zeitgeist | ||
2125 | 6 | |||
2126 | 7 | libzeitgeist_xpcom_la_SOURCES = \ | ||
2127 | 8 | ZeitgeistComponent.cpp \ | ||
2128 | 9 | ZeitgeistModule.cpp \ | ||
2129 | 10 | $(NULL) | ||
2130 | 11 | |||
2131 | 12 | libzeitgeist_xpcom_la_CXXFLAGS = \ | ||
2132 | 13 | -include "xpcom-config.h" \ | ||
2133 | 14 | $(ZEITGEIST_CFLAGS) \ | ||
2134 | 15 | $(LIBXUL_2_0_CFLAGS) \ | ||
2135 | 16 | $(NULL) | ||
2136 | 17 | |||
2137 | 18 | libzeitgeist_xpcom_la_LIBADD = \ | ||
2138 | 19 | $(ZEITGEIST_LIBS) \ | ||
2139 | 20 | $(LIBXUL_2_0_LIBS) \ | ||
2140 | 21 | $(NULL) | ||
2141 | 22 | |||
2142 | 23 | libzeitgeist_xpcom_la_LDFLAGS = \ | ||
2143 | 24 | -module -avoid-version \ | ||
2144 | 25 | $(NULL) | ||
2145 | 26 | |||
2146 | 27 | BUILT_SOURCES = \ | ||
2147 | 28 | zeitgeist-library.h \ | ||
2148 | 29 | zeitgeist.h \ | ||
2149 | 30 | zeitgeist.xpt \ | ||
2150 | 31 | $(NULL) | ||
2151 | 32 | |||
2152 | 33 | EXTRA_DIST = \ | ||
2153 | 34 | zeitgeist.idl \ | ||
2154 | 35 | zeitgeistextend.h \ | ||
2155 | 36 | $(NULL) | ||
2156 | 37 | |||
2157 | 38 | DISTCLEANFILES = \ | ||
2158 | 39 | $(BUILT_SOURCES) \ | ||
2159 | 40 | $(NULL) | ||
2160 | 41 | |||
2161 | 42 | |||
2162 | 43 | zeitgeist.h: zeitgeist.idl | ||
2163 | 44 | $(AM_V_GEN)$(XPIDL_BIN) -m header -I $(XUL_IDLDIR) -o zeitgeist $< | ||
2164 | 45 | |||
2165 | 46 | zeitgeist.xpt: zeitgeist.idl | ||
2166 | 47 | $(AM_V_GEN)$(XPIDL_BIN) -m typelib -I $(XUL_IDLDIR) -o zeitgeist $< | ||
2167 | 48 | |||
2168 | 49 | zeitgeist-library.h: | ||
2169 | 50 | $(AM_V_GEN)$(LN_S) "`$(PKG_CONFIG) --variable includedir zeitgeist-1.0`/zeitgeist-1.0/zeitgeist.h" $@ | ||
2170 | 51 | |||
2171 | 52 | install-exec-hook: | ||
2172 | 53 | test -d $(DESTDIR)$(xul_extdir) || $(MKDIR_P) $(DESTDIR)$(xul_extdir) | ||
2173 | 54 | test -h $(DESTDIR)$(xul_extdir)/components || $(LN_S) -f $(DESTDIR)$(zeitgeistmoduledir) $(DESTDIR)$(xul_extdir)/components | ||
2174 | 55 | |||
2175 | 56 | # small helper with local install | ||
2176 | 57 | local-install: all | ||
2177 | 58 | cp .libs/libzeitgeist_xpcom.so ./ | ||
2178 | 59 | |||
2179 | 60 | local-uninstall: ; | ||
2180 | 61 | 0 | ||
2181 | === removed file 'firefox-libzg/extension/components/ZeitgeistComponent.cpp' | |||
2182 | --- firefox-libzg/extension/components/ZeitgeistComponent.cpp 2011-04-29 20:41:04 +0000 | |||
2183 | +++ firefox-libzg/extension/components/ZeitgeistComponent.cpp 1970-01-01 00:00:00 +0000 | |||
2184 | @@ -1,50 +0,0 @@ | |||
2185 | 1 | /* | ||
2186 | 2 | * ZeitgeistComponent.cpp | ||
2187 | 3 | * This file is part of zeitgeist dataprovider for firefox | ||
2188 | 4 | * | ||
2189 | 5 | * Copyright (C) 2010 - Markus Korn <thekorn@gmx.de> | ||
2190 | 6 | * | ||
2191 | 7 | * zeitgeist dataprovider for firefox is free software; you can redistribute it and/or | ||
2192 | 8 | * modify it under the terms of the GNU Lesser General Public | ||
2193 | 9 | * License as published by the Free Software Foundation; either | ||
2194 | 10 | * version 3 of the License, or (at your option) any later version. | ||
2195 | 11 | * | ||
2196 | 12 | * zeitgeist dataprovider for firefox is distributed in the hope that it will be useful, | ||
2197 | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
2198 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
2199 | 15 | * Lesser General Public License for more details. | ||
2200 | 16 | * | ||
2201 | 17 | * You should have received a copy of the GNU Lesser General Public | ||
2202 | 18 | * License along with this library; if not, write to the Free Software | ||
2203 | 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
2204 | 20 | */ | ||
2205 | 21 | |||
2206 | 22 | |||
2207 | 23 | #include "mozilla/ModuleUtils.h" | ||
2208 | 24 | #include "zeitgeist.h" | ||
2209 | 25 | #include "zeitgeistextend.h" | ||
2210 | 26 | |||
2211 | 27 | NS_GENERIC_FACTORY_CONSTRUCTOR(zeitgeistextend) | ||
2212 | 28 | |||
2213 | 29 | NS_DEFINE_NAMED_CID(ZEITGEIST_COMPONENT_CID); | ||
2214 | 30 | |||
2215 | 31 | static const mozilla::Module::CIDEntry kZeitgeistCIDs[] = { | ||
2216 | 32 | { &kZEITGEIST_COMPONENT_CID, false, NULL, zeitgeistextendConstructor }, | ||
2217 | 33 | { NULL } | ||
2218 | 34 | }; | ||
2219 | 35 | |||
2220 | 36 | static const mozilla::Module::ContractIDEntry kZeitgeistContracts[] = { | ||
2221 | 37 | { ZEITGEIST_COMPONENT_CONTRACTID, &kZEITGEIST_COMPONENT_CID }, | ||
2222 | 38 | { NULL } | ||
2223 | 39 | }; | ||
2224 | 40 | |||
2225 | 41 | static const mozilla::Module kZeitgeistModule = { | ||
2226 | 42 | mozilla::Module::kVersion, | ||
2227 | 43 | kZeitgeistCIDs, | ||
2228 | 44 | kZeitgeistContracts, | ||
2229 | 45 | NULL | ||
2230 | 46 | }; | ||
2231 | 47 | |||
2232 | 48 | NSMODULE_DEFN(ZeitgeistModule) = &kZeitgeistModule; | ||
2233 | 49 | |||
2234 | 50 | NS_IMPL_MOZILLA192_NSGETMODULE(&kZeitgeistModule) | ||
2235 | 51 | 0 | ||
2236 | === removed file 'firefox-libzg/extension/components/ZeitgeistModule.cpp' | |||
2237 | --- firefox-libzg/extension/components/ZeitgeistModule.cpp 2010-05-28 17:56:06 +0000 | |||
2238 | +++ firefox-libzg/extension/components/ZeitgeistModule.cpp 1970-01-01 00:00:00 +0000 | |||
2239 | @@ -1,86 +0,0 @@ | |||
2240 | 1 | /* | ||
2241 | 2 | * ZeitgeistModule.cpp | ||
2242 | 3 | * This file is part of zeitgeist dataprovider for firefox | ||
2243 | 4 | * | ||
2244 | 5 | * Copyright (C) 2010 - Markus Korn <thekorn@gmx.de> | ||
2245 | 6 | * Copyright (C) 2010 - Michal Hruby <michal.mhr@gmail.com> | ||
2246 | 7 | * | ||
2247 | 8 | * zeitgeist dataprovider for firefox is free software; you can redistribute it and/or | ||
2248 | 9 | * modify it under the terms of the GNU Lesser General Public | ||
2249 | 10 | * License as published by the Free Software Foundation; either | ||
2250 | 11 | * version 3 of the License, or (at your option) any later version. | ||
2251 | 12 | * | ||
2252 | 13 | * zeitgeist dataprovider for firefox is distributed in the hope that it will be useful, | ||
2253 | 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
2254 | 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
2255 | 16 | * Lesser General Public License for more details. | ||
2256 | 17 | * | ||
2257 | 18 | * You should have received a copy of the GNU Lesser General Public | ||
2258 | 19 | * License along with this library; if not, write to the Free Software | ||
2259 | 20 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
2260 | 21 | */ | ||
2261 | 22 | |||
2262 | 23 | |||
2263 | 24 | #include "zeitgeist.h" | ||
2264 | 25 | #include "zeitgeistextend.h" | ||
2265 | 26 | |||
2266 | 27 | #include <nsStringAPI.h> | ||
2267 | 28 | #include <glib.h> | ||
2268 | 29 | #include <glib-object.h> | ||
2269 | 30 | #include <zeitgeist.h> | ||
2270 | 31 | |||
2271 | 32 | |||
2272 | 33 | using namespace std; | ||
2273 | 34 | |||
2274 | 35 | NS_IMPL_ISUPPORTS1(zeitgeistextend, zeitgeist) | ||
2275 | 36 | |||
2276 | 37 | zeitgeistextend::zeitgeistextend() | ||
2277 | 38 | { | ||
2278 | 39 | g_debug("constructor of zeitgeistextend"); | ||
2279 | 40 | g_type_init (); | ||
2280 | 41 | |||
2281 | 42 | log = (ZeitgeistLog *)g_object_new (ZEITGEIST_TYPE_LOG, NULL); | ||
2282 | 43 | } | ||
2283 | 44 | |||
2284 | 45 | zeitgeistextend::~zeitgeistextend() | ||
2285 | 46 | { | ||
2286 | 47 | g_debug("destructor of zeitgeistextend"); | ||
2287 | 48 | } | ||
2288 | 49 | |||
2289 | 50 | NS_IMETHODIMP zeitgeistextend::Insert(const char *url, | ||
2290 | 51 | const char *mimetype, | ||
2291 | 52 | const nsACString &title_str) | ||
2292 | 53 | { | ||
2293 | 54 | ZeitgeistEvent *event; | ||
2294 | 55 | gchar *title = NULL; | ||
2295 | 56 | |||
2296 | 57 | g_debug("zeitgeist start - creating event"); | ||
2297 | 58 | |||
2298 | 59 | if (!title_str.IsEmpty ()) | ||
2299 | 60 | { | ||
2300 | 61 | gsize title_len = title_str.EndReading () - title_str.BeginReading (); | ||
2301 | 62 | title = g_strndup (title_str.BeginReading (), title_len); | ||
2302 | 63 | } | ||
2303 | 64 | |||
2304 | 65 | event = zeitgeist_event_new_full ( | ||
2305 | 66 | ZEITGEIST_ZG_ACCESS_EVENT, | ||
2306 | 67 | ZEITGEIST_ZG_USER_ACTIVITY, | ||
2307 | 68 | "application://firefox.desktop", | ||
2308 | 69 | zeitgeist_subject_new_full ( | ||
2309 | 70 | url, | ||
2310 | 71 | ZEITGEIST_NFO_WEBSITE, | ||
2311 | 72 | ZEITGEIST_NFO_REMOTE_DATA_OBJECT, | ||
2312 | 73 | mimetype, | ||
2313 | 74 | url, | ||
2314 | 75 | title, | ||
2315 | 76 | "net"), | ||
2316 | 77 | NULL); | ||
2317 | 78 | |||
2318 | 79 | if (title) g_free (title); | ||
2319 | 80 | g_debug("inserting event"); | ||
2320 | 81 | zeitgeist_log_insert_events_no_reply(log, event, NULL); | ||
2321 | 82 | g_debug("zeitgeist end"); | ||
2322 | 83 | |||
2323 | 84 | return NS_OK; | ||
2324 | 85 | } | ||
2325 | 86 | |||
2326 | 87 | 0 | ||
2327 | === removed file 'firefox-libzg/extension/components/zeitgeist.idl' | |||
2328 | --- firefox-libzg/extension/components/zeitgeist.idl 2010-05-14 16:34:36 +0000 | |||
2329 | +++ firefox-libzg/extension/components/zeitgeist.idl 1970-01-01 00:00:00 +0000 | |||
2330 | @@ -1,30 +0,0 @@ | |||
2331 | 1 | /* | ||
2332 | 2 | * zeitgeist.idl | ||
2333 | 3 | * This file is part of zeitgeist dataprovider for firefox | ||
2334 | 4 | * | ||
2335 | 5 | * Copyright (C) 2010 - Markus Korn <thekorn@gmx.de> | ||
2336 | 6 | * Copyright (C) 2010 - Michal Hruby <michal.mhr@gmail.com> | ||
2337 | 7 | * | ||
2338 | 8 | * zeitgeist dataprovider for firefox is free software; you can redistribute it and/or | ||
2339 | 9 | * modify it under the terms of the GNU Lesser General Public | ||
2340 | 10 | * License as published by the Free Software Foundation; either | ||
2341 | 11 | * version 3 of the License, or (at your option) any later version. | ||
2342 | 12 | * | ||
2343 | 13 | * zeitgeist dataprovider for firefox is distributed in the hope that it will be useful, | ||
2344 | 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
2345 | 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
2346 | 16 | * Lesser General Public License for more details. | ||
2347 | 17 | * | ||
2348 | 18 | * You should have received a copy of the GNU Lesser General Public | ||
2349 | 19 | * License along with this library; if not, write to the Free Software | ||
2350 | 20 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
2351 | 21 | */ | ||
2352 | 22 | |||
2353 | 23 | |||
2354 | 24 | #include "nsISupports.idl" | ||
2355 | 25 | [scriptable, uuid(d879c08c-517d-44f0-83e1-3ef75a527ddf)] | ||
2356 | 26 | interface zeitgeist : nsISupports | ||
2357 | 27 | { | ||
2358 | 28 | void insert(in string url, in string mimetype, in AUTF8String title); | ||
2359 | 29 | }; | ||
2360 | 30 | |||
2361 | 31 | 0 | ||
2362 | === removed file 'firefox-libzg/extension/components/zeitgeistextend.h' | |||
2363 | --- firefox-libzg/extension/components/zeitgeistextend.h 2010-06-08 00:24:42 +0000 | |||
2364 | +++ firefox-libzg/extension/components/zeitgeistextend.h 1970-01-01 00:00:00 +0000 | |||
2365 | @@ -1,45 +0,0 @@ | |||
2366 | 1 | /* | ||
2367 | 2 | * zeitgeistextend.h | ||
2368 | 3 | * This file is part of zeitgeist dataprovider for firefox | ||
2369 | 4 | * | ||
2370 | 5 | * Copyright (C) 2010 - Markus Korn <thekorn@gmx.de> | ||
2371 | 6 | * | ||
2372 | 7 | * zeitgeist dataprovider for firefox is free software; you can redistribute it and/or | ||
2373 | 8 | * modify it under the terms of the GNU Lesser General Public | ||
2374 | 9 | * License as published by the Free Software Foundation; either | ||
2375 | 10 | * version 3 of the License, or (at your option) any later version. | ||
2376 | 11 | * | ||
2377 | 12 | * zeitgeist dataprovider for firefox is distributed in the hope that it will be useful, | ||
2378 | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
2379 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
2380 | 15 | * Lesser General Public License for more details. | ||
2381 | 16 | * | ||
2382 | 17 | * You should have received a copy of the GNU Lesser General Public | ||
2383 | 18 | * License along with this library; if not, write to the Free Software | ||
2384 | 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
2385 | 20 | */ | ||
2386 | 21 | |||
2387 | 22 | |||
2388 | 23 | #ifndef _ZEITGEISTEXTEND_H_ | ||
2389 | 24 | #define _ZEITGEISTEXTEND_H_ | ||
2390 | 25 | |||
2391 | 26 | #include "zeitgeist.h" | ||
2392 | 27 | #include "zeitgeist-library.h" | ||
2393 | 28 | |||
2394 | 29 | #define ZEITGEIST_COMPONENT_CONTRACTID "@zeitgeist-project.com/DATAPROVIDER/firefox-xpcom;1" | ||
2395 | 30 | #define ZEITGEIST_COMPONENT_CLASSNAME "zeitgeist dataprovider for firefox" | ||
2396 | 31 | #define ZEITGEIST_COMPONENT_CID { 0xd879c08c, 0x517d, 0x44f0, { 0x83, 0xe1, 0x3e, 0xf7, 0x5a, 0x52, 0x7d, 0xdf } } | ||
2397 | 32 | |||
2398 | 33 | //d879c08c-517d-44f0-83e1-3ef75a527ddf | ||
2399 | 34 | class zeitgeistextend : public zeitgeist | ||
2400 | 35 | { | ||
2401 | 36 | public: | ||
2402 | 37 | NS_DECL_ISUPPORTS | ||
2403 | 38 | NS_DECL_ZEITGEIST | ||
2404 | 39 | |||
2405 | 40 | zeitgeistextend(); | ||
2406 | 41 | virtual ~zeitgeistextend(); | ||
2407 | 42 | ZeitgeistLog *log; | ||
2408 | 43 | |||
2409 | 44 | }; | ||
2410 | 45 | #endif | ||
2411 | 46 | 0 | ||
2412 | === removed directory 'firefox-libzg/extension/defaults' | |||
2413 | === removed directory 'firefox-libzg/extension/defaults/preferences' | |||
2414 | === removed file 'firefox-libzg/extension/defaults/preferences/zeitgeist.js' | |||
2415 | --- firefox-libzg/extension/defaults/preferences/zeitgeist.js 2010-05-20 18:33:46 +0000 | |||
2416 | +++ firefox-libzg/extension/defaults/preferences/zeitgeist.js 1970-01-01 00:00:00 +0000 | |||
2417 | @@ -1,2 +0,0 @@ | |||
2418 | 1 | pref("extensions.zeitgeist.ignored_uris", "[\"^about:*\"]"); | ||
2419 | 2 | pref("extensions.zeitgeist.enable_googlemail", false); | ||
2420 | 3 | 0 | ||
2421 | === removed file 'firefox-libzg/extension/install.rdf' | |||
2422 | --- firefox-libzg/extension/install.rdf 2011-05-02 20:13:34 +0000 | |||
2423 | +++ firefox-libzg/extension/install.rdf 1970-01-01 00:00:00 +0000 | |||
2424 | @@ -1,28 +0,0 @@ | |||
2425 | 1 | <?xml version="1.0"?> | ||
2426 | 2 | |||
2427 | 3 | <RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | ||
2428 | 4 | xmlns:em="http://www.mozilla.org/2004/em-rdf#"> | ||
2429 | 5 | |||
2430 | 6 | <Description about="urn:mozilla:install-manifest"> | ||
2431 | 7 | <em:id>xpcom_firefox@zeitgeist-project.com</em:id> | ||
2432 | 8 | <em:version>0.3</em:version> | ||
2433 | 9 | <em:type>2</em:type> | ||
2434 | 10 | |||
2435 | 11 | <!-- Target Application this extension can install into, | ||
2436 | 12 | with minimum and maximum supported versions. --> | ||
2437 | 13 | <em:targetApplication> | ||
2438 | 14 | <Description> | ||
2439 | 15 | <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> | ||
2440 | 16 | <em:minVersion>4.0</em:minVersion> | ||
2441 | 17 | <em:maxVersion>4.0.*</em:maxVersion> | ||
2442 | 18 | </Description> | ||
2443 | 19 | </em:targetApplication> | ||
2444 | 20 | |||
2445 | 21 | <!-- Front End MetaData --> | ||
2446 | 22 | <em:name>zeitgeist</em:name> | ||
2447 | 23 | <em:description>dataprovider for the zeitgeist framework, using xpcom and libzeitgeist</em:description> | ||
2448 | 24 | <em:creator>Markus Korn</em:creator> | ||
2449 | 25 | <em:homepageURL>http://launchpad.net/zeitgeist</em:homepageURL> | ||
2450 | 26 | <em:iconURL>chrome://zeitgeist/content/zeitgeist.png</em:iconURL> | ||
2451 | 27 | </Description> | ||
2452 | 28 | </RDF> | ||
2453 | 29 | 0 | ||
2454 | === removed file 'firefox-libzg/extension/license.txt' | |||
2455 | --- firefox-libzg/extension/license.txt 2010-05-12 06:44:01 +0000 | |||
2456 | +++ firefox-libzg/extension/license.txt 1970-01-01 00:00:00 +0000 | |||
2457 | @@ -1,166 +0,0 @@ | |||
2458 | 1 | GNU LESSER GENERAL PUBLIC LICENSE | ||
2459 | 2 | Version 3, 29 June 2007 | ||
2460 | 3 | |||
2461 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> | ||
2462 | 5 | Everyone is permitted to copy and distribute verbatim copies | ||
2463 | 6 | of this license document, but changing it is not allowed. | ||
2464 | 7 | |||
2465 | 8 | |||
2466 | 9 | This version of the GNU Lesser General Public License incorporates | ||
2467 | 10 | the terms and conditions of version 3 of the GNU General Public | ||
2468 | 11 | License, supplemented by the additional permissions listed below. | ||
2469 | 12 | |||
2470 | 13 | 0. Additional Definitions. | ||
2471 | 14 | |||
2472 | 15 | As used herein, "this License" refers to version 3 of the GNU Lesser | ||
2473 | 16 | General Public License, and the "GNU GPL" refers to version 3 of the GNU | ||
2474 | 17 | General Public License. | ||
2475 | 18 | |||
2476 | 19 | "The Library" refers to a covered work governed by this License, | ||
2477 | 20 | other than an Application or a Combined Work as defined below. | ||
2478 | 21 | |||
2479 | 22 | An "Application" is any work that makes use of an interface provided | ||
2480 | 23 | by the Library, but which is not otherwise based on the Library. | ||
2481 | 24 | Defining a subclass of a class defined by the Library is deemed a mode | ||
2482 | 25 | of using an interface provided by the Library. | ||
2483 | 26 | |||
2484 | 27 | A "Combined Work" is a work produced by combining or linking an | ||
2485 | 28 | Application with the Library. The particular version of the Library | ||
2486 | 29 | with which the Combined Work was made is also called the "Linked | ||
2487 | 30 | Version". | ||
2488 | 31 | |||
2489 | 32 | The "Minimal Corresponding Source" for a Combined Work means the | ||
2490 | 33 | Corresponding Source for the Combined Work, excluding any source code | ||
2491 | 34 | for portions of the Combined Work that, considered in isolation, are | ||
2492 | 35 | based on the Application, and not on the Linked Version. | ||
2493 | 36 | |||
2494 | 37 | The "Corresponding Application Code" for a Combined Work means the | ||
2495 | 38 | object code and/or source code for the Application, including any data | ||
2496 | 39 | and utility programs needed for reproducing the Combined Work from the | ||
2497 | 40 | Application, but excluding the System Libraries of the Combined Work. | ||
2498 | 41 | |||
2499 | 42 | 1. Exception to Section 3 of the GNU GPL. | ||
2500 | 43 | |||
2501 | 44 | You may convey a covered work under sections 3 and 4 of this License | ||
2502 | 45 | without being bound by section 3 of the GNU GPL. | ||
2503 | 46 | |||
2504 | 47 | 2. Conveying Modified Versions. | ||
2505 | 48 | |||
2506 | 49 | If you modify a copy of the Library, and, in your modifications, a | ||
2507 | 50 | facility refers to a function or data to be supplied by an Application | ||
2508 | 51 | that uses the facility (other than as an argument passed when the | ||
2509 | 52 | facility is invoked), then you may convey a copy of the modified | ||
2510 | 53 | version: | ||
2511 | 54 | |||
2512 | 55 | a) under this License, provided that you make a good faith effort to | ||
2513 | 56 | ensure that, in the event an Application does not supply the | ||
2514 | 57 | function or data, the facility still operates, and performs | ||
2515 | 58 | whatever part of its purpose remains meaningful, or | ||
2516 | 59 | |||
2517 | 60 | b) under the GNU GPL, with none of the additional permissions of | ||
2518 | 61 | this License applicable to that copy. | ||
2519 | 62 | |||
2520 | 63 | 3. Object Code Incorporating Material from Library Header Files. | ||
2521 | 64 | |||
2522 | 65 | The object code form of an Application may incorporate material from | ||
2523 | 66 | a header file that is part of the Library. You may convey such object | ||
2524 | 67 | code under terms of your choice, provided that, if the incorporated | ||
2525 | 68 | material is not limited to numerical parameters, data structure | ||
2526 | 69 | layouts and accessors, or small macros, inline functions and templates | ||
2527 | 70 | (ten or fewer lines in length), you do both of the following: | ||
2528 | 71 | |||
2529 | 72 | a) Give prominent notice with each copy of the object code that the | ||
2530 | 73 | Library is used in it and that the Library and its use are | ||
2531 | 74 | covered by this License. | ||
2532 | 75 | |||
2533 | 76 | b) Accompany the object code with a copy of the GNU GPL and this license | ||
2534 | 77 | document. | ||
2535 | 78 | |||
2536 | 79 | 4. Combined Works. | ||
2537 | 80 | |||
2538 | 81 | You may convey a Combined Work under terms of your choice that, | ||
2539 | 82 | taken together, effectively do not restrict modification of the | ||
2540 | 83 | portions of the Library contained in the Combined Work and reverse | ||
2541 | 84 | engineering for debugging such modifications, if you also do each of | ||
2542 | 85 | the following: | ||
2543 | 86 | |||
2544 | 87 | a) Give prominent notice with each copy of the Combined Work that | ||
2545 | 88 | the Library is used in it and that the Library and its use are | ||
2546 | 89 | covered by this License. | ||
2547 | 90 | |||
2548 | 91 | b) Accompany the Combined Work with a copy of the GNU GPL and this license | ||
2549 | 92 | document. | ||
2550 | 93 | |||
2551 | 94 | c) For a Combined Work that displays copyright notices during | ||
2552 | 95 | execution, include the copyright notice for the Library among | ||
2553 | 96 | these notices, as well as a reference directing the user to the | ||
2554 | 97 | copies of the GNU GPL and this license document. | ||
2555 | 98 | |||
2556 | 99 | d) Do one of the following: | ||
2557 | 100 | |||
2558 | 101 | 0) Convey the Minimal Corresponding Source under the terms of this | ||
2559 | 102 | License, and the Corresponding Application Code in a form | ||
2560 | 103 | suitable for, and under terms that permit, the user to | ||
2561 | 104 | recombine or relink the Application with a modified version of | ||
2562 | 105 | the Linked Version to produce a modified Combined Work, in the | ||
2563 | 106 | manner specified by section 6 of the GNU GPL for conveying | ||
2564 | 107 | Corresponding Source. | ||
2565 | 108 | |||
2566 | 109 | 1) Use a suitable shared library mechanism for linking with the | ||
2567 | 110 | Library. A suitable mechanism is one that (a) uses at run time | ||
2568 | 111 | a copy of the Library already present on the user's computer | ||
2569 | 112 | system, and (b) will operate properly with a modified version | ||
2570 | 113 | of the Library that is interface-compatible with the Linked | ||
2571 | 114 | Version. | ||
2572 | 115 | |||
2573 | 116 | e) Provide Installation Information, but only if you would otherwise | ||
2574 | 117 | be required to provide such information under section 6 of the | ||
2575 | 118 | GNU GPL, and only to the extent that such information is | ||
2576 | 119 | necessary to install and execute a modified version of the | ||
2577 | 120 | Combined Work produced by recombining or relinking the | ||
2578 | 121 | Application with a modified version of the Linked Version. (If | ||
2579 | 122 | you use option 4d0, the Installation Information must accompany | ||
2580 | 123 | the Minimal Corresponding Source and Corresponding Application | ||
2581 | 124 | Code. If you use option 4d1, you must provide the Installation | ||
2582 | 125 | Information in the manner specified by section 6 of the GNU GPL | ||
2583 | 126 | for conveying Corresponding Source.) | ||
2584 | 127 | |||
2585 | 128 | 5. Combined Libraries. | ||
2586 | 129 | |||
2587 | 130 | You may place library facilities that are a work based on the | ||
2588 | 131 | Library side by side in a single library together with other library | ||
2589 | 132 | facilities that are not Applications and are not covered by this | ||
2590 | 133 | License, and convey such a combined library under terms of your | ||
2591 | 134 | choice, if you do both of the following: | ||
2592 | 135 | |||
2593 | 136 | a) Accompany the combined library with a copy of the same work based | ||
2594 | 137 | on the Library, uncombined with any other library facilities, | ||
2595 | 138 | conveyed under the terms of this License. | ||
2596 | 139 | |||
2597 | 140 | b) Give prominent notice with the combined library that part of it | ||
2598 | 141 | is a work based on the Library, and explaining where to find the | ||
2599 | 142 | accompanying uncombined form of the same work. | ||
2600 | 143 | |||
2601 | 144 | 6. Revised Versions of the GNU Lesser General Public License. | ||
2602 | 145 | |||
2603 | 146 | The Free Software Foundation may publish revised and/or new versions | ||
2604 | 147 | of the GNU Lesser General Public License from time to time. Such new | ||
2605 | 148 | versions will be similar in spirit to the present version, but may | ||
2606 | 149 | differ in detail to address new problems or concerns. | ||
2607 | 150 | |||
2608 | 151 | Each version is given a distinguishing version number. If the | ||
2609 | 152 | Library as you received it specifies that a certain numbered version | ||
2610 | 153 | of the GNU Lesser General Public License "or any later version" | ||
2611 | 154 | applies to it, you have the option of following the terms and | ||
2612 | 155 | conditions either of that published version or of any later version | ||
2613 | 156 | published by the Free Software Foundation. If the Library as you | ||
2614 | 157 | received it does not specify a version number of the GNU Lesser | ||
2615 | 158 | General Public License, you may choose any version of the GNU Lesser | ||
2616 | 159 | General Public License ever published by the Free Software Foundation. | ||
2617 | 160 | |||
2618 | 161 | If the Library as you received it specifies that a proxy can decide | ||
2619 | 162 | whether future versions of the GNU Lesser General Public License shall | ||
2620 | 163 | apply, that proxy's public statement of acceptance of any version is | ||
2621 | 164 | permanent authorization for you to choose that version for the | ||
2622 | 165 | Library. | ||
2623 | 166 |
Hi Manish
Please fix configure.ac. Currently it asks for "libxul >= 1.92" where libxul is 1.9.2.* now.
Thanks