[gnome-documents/wip/skydrive: 24/28] documents: check the nao:identifier and instantiate a SkydriveDocument
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents/wip/skydrive: 24/28] documents: check the nao:identifier and instantiate a SkydriveDocument
- Date: Mon, 4 Jun 2012 17:34:20 +0000 (UTC)
commit 104c43b5d6c42607bd313632489074b47b362656
Author: Debarshi Ray <debarshir gnome org>
Date: Wed May 30 23:49:03 2012 +0200
documents: check the nao:identifier and instantiate a SkydriveDocument
Fixes: https://bugzilla.gnome.org/666535
src/documents.js | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/documents.js b/src/documents.js
index 570e6f9..2fd2d43 100644
--- a/src/documents.js
+++ b/src/documents.js
@@ -968,12 +968,19 @@ DocumentManager.prototype = {
(identifier.indexOf('https://docs.google.com') != -1));
},
+ _identifierIsSkydrive: function(identifier) {
+ return (identifier &&
+ (identifier.indexOf('windows-live:skydrive:') != -1));
+ },
+
createDocumentFromCursor: function(cursor) {
let identifier = cursor.get_string(Query.QueryColumns.IDENTIFIER)[0];
let doc;
if (this._identifierIsGoogle(identifier))
doc = new GoogleDocument(cursor);
+ else if (this._identifierIsSkydrive(identifier))
+ doc = new SkydriveDocument(cursor);
else
doc = new LocalDocument(cursor);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]