~ubuntu-branches/ubuntu/wily/unity-webapps-qml/wily-proposed

« back to all changes in this revision

Viewing changes to src/Ubuntu/UnityWebApps/plugin/unity-webapps-app-manifest-parser.h

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, Ubuntu daily release, Alexandre Abreu
  • Date: 2014-05-14 22:31:22 UTC
  • mfrom: (1.1.30)
  • Revision ID: package-import@ubuntu.com-20140514223122-ln3ei1hz5je1tkc6
Tags: 0.1+14.10.20140514.2-0ubuntu1
[ Ubuntu daily release ]
* New rebuild forced

[ Alexandre Abreu ]
* Cleanup the structure of the QML bindings to make it clearer. No
  Changes in functionality all features are still working & same, This
  is an updated version of: https://code.launchpad.net/~abreu-
  alexandre/unity-webapps-qml/restructure-cleanup-bindings-qml-
  structure/+merge/208148 with the latest changes that got in in
  between (LP: #1288801)
* Simplifies the manifest.json handling in some instances. More
  precisely when one is using a custom model search path for the
  webapp lookup, some restrictions are being put on what is expected
  to be found in the folder among which: a common/ subfolder (even if
  the webapp doesnt require one),. one or more unity-webapps-* folders
  with manifest.json & *.user.js files in it,. More over the manifest
  files do require user scripts to be defined. This imposes a set of
  constraints over a given webapp that simply wants to use the
  container (w/o js injection). This simplifies it an allows one to
  define a manifest.json file (still with some required elements, but
  a smaller set), directly in the model search path. E.g. something
  like: {     "name": "MyWebApp",     "homepage":
  "http://www.bbc.co.uk/news/",     "domain": "bbc.co.uk",
      "includes": [] } will do, or to avoid any confusion w/ the click
  manifest.json file, one also searches for a webapp-properties.json
  w/ the same content as above.

Show diffs side-by-side

added added

removed removed

Lines of Context:
93
93
    parseChromeOptions(const QString& options);
94
94
 
95
95
    /*!
96
 
     * \brief parseContent
97
 
     * \param content
98
 
     * \param infos
99
 
     * \return
100
 
     */
101
 
    bool parseContent(const QString& content,
102
 
                      ManifestFileInfo * infos);
 
96
     * \brief parseManifestContent
 
97
     * \param content
 
98
     * \param infos
 
99
     * \return
 
100
     */
 
101
    bool parseManifestContent(const QString& content,
 
102
                              ManifestFileInfo * infos);
 
103
 
 
104
    /*!
 
105
     * \brief parseManifestContent
 
106
     * \param content
 
107
     * \param infos
 
108
     * \return
 
109
     */
 
110
    bool parseWebappDeclaration(const QJsonObject& json,
 
111
                                ManifestFileInfo * infos);
103
112
};
104
113
 
105
114
#endif // __UNITY_WEBAPPS_APP_MANIFEST_H__