- if (reader.name().equalsIgnoreCase("Guid")) \r
- notebook.setGuid(textValue());\r
- if (reader.name().equalsIgnoreCase("Name")) \r
- notebook.setName(textValue());\r
- if (reader.name().equalsIgnoreCase("UpdateSequenceNumber")) \r
- notebook.setUpdateSequenceNum(intValue());\r
- if (reader.name().equalsIgnoreCase("ServiceCreated")) \r
- notebook.setServiceCreated(longValue());\r
- if (reader.name().equalsIgnoreCase("ServiceUpdated")) \r
- notebook.setServiceUpdated(longValue());\r
- if (reader.name().equalsIgnoreCase("DefaultNotebook")) {\r
- notebook.setDefaultNotebook(booleanValue());\r
- }\r
- if (reader.name().equalsIgnoreCase("Dirty")) {\r
- if (booleanValue())\r
- notebookIsDirty = true;\r
- }\r
- if (reader.name().equalsIgnoreCase("LocalNotebook")) {\r
- if (booleanValue())\r
- notebookIsLocal = true;\r
- }\r
- if (reader.name().equalsIgnoreCase("ReadOnly")) {\r
- if (booleanValue())\r
- notebookIsReadOnly = true;\r
- }\r
- if (reader.name().equalsIgnoreCase("PublishingPublicDescription")) {\r
- notebook.getPublishing().setPublicDescription(textValue());\r
- }\r
- if (reader.name().equalsIgnoreCase("PublishingUri")) {\r
- notebook.getPublishing().setUri(textValue());\r
- }\r
- if (reader.name().equalsIgnoreCase("PublishingOrder")) {\r
- notebook.getPublishing().setOrder(NoteSortOrder.findByValue(intValue()));\r
- }\r
- if (reader.name().equalsIgnoreCase("ReadOnly")) {\r
- if (booleanValue())\r
- notebookIsReadOnly = true;\r
- }\r
- if (reader.name().equalsIgnoreCase("PublishingAscending")) {\r
- if (booleanValue())\r
- notebook.getPublishing().setAscending(true);\r
- else\r
- notebook.getPublishing().setAscending(false);\r
- } \r
- if (reader.name().equalsIgnoreCase("Icon")) {\r
- byte[] b = textValue().getBytes(); // data binary\r
- QByteArray hexData = new QByteArray(b);\r
- QByteArray binData = new QByteArray(QByteArray.fromHex(hexData));\r
- notebookIcon = new QIcon(QPixmap.fromImage(QImage.fromData(binData)));\r
- }\r
- if (reader.name().equalsIgnoreCase("Stack"))\r
- notebook.setStack(textValue());\r
+ if (reader.name().equalsIgnoreCase("source-url")) \r
+ attributes.setSourceURL(textValue());\r
+ if (reader.name().equalsIgnoreCase("source")) \r
+ attributes.setSource(textValue());\r
+ if (reader.name().equalsIgnoreCase("longitude")) \r
+ attributes.setLongitude(doubleValue());\r
+ if (reader.name().equalsIgnoreCase("latitude")) \r
+ attributes.setLatitude(doubleValue());\r
+ if (reader.name().equalsIgnoreCase("altitude")) \r
+ attributes.setAltitude(doubleValue());\r
+ if (reader.name().equalsIgnoreCase("author")) \r
+ attributes.setAuthor(textValue());\r
+ if (reader.name().equalsIgnoreCase("subject-date")) \r
+ attributes.setSubjectDate(datetimeValue());\r