~indicator-applet-developers/pay-service/trunk.15.10

« back to all changes in this revision

Viewing changes to pay-ui/backend/modules/payui/backend.h

  • Committer: CI Train Bot
  • Author(s): Rodney Dawes
  • Date: 2016-03-11 14:50:51 UTC
  • mfrom: (95.1.26 merge-payui)
  • Revision ID: ci-train-bot@canonical.com-20160311145051-v6r8n0hy3sci4psb
Merge pay-ui into pay-service. Fixes: #1432031, #1535420
Approved by: Charles Kerr

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef BACKEND_PLUGIN_H
 
2
#define BACKEND_PLUGIN_H
 
3
 
 
4
#include <QtQml/QQmlEngine>
 
5
#include <QtQml/QQmlExtensionPlugin>
 
6
 
 
7
/*
 
8
 ----8<-----
 
9
 
 
10
 import payui 0.1
 
11
 
 
12
 Rectangle {
 
13
   width: 200
 
14
   height: 200
 
15
 
 
16
   Purchase {
 
17
      id: purchase
 
18
   }
 
19
 }
 
20
 
 
21
 -----8<------
 
22
*/
 
23
class BackendPlugin : public QQmlExtensionPlugin
 
24
{
 
25
    Q_OBJECT
 
26
    Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
 
27
 
 
28
public:
 
29
    void registerTypes(const char *uri);
 
30
    void initializeEngine(QQmlEngine *engine, const char *uri);
 
31
};
 
32
#endif // BACKEND_PLUGIN_H
 
33