Advertisement
Guest User

Untitled

a guest
Dec 14th, 2016
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. c++:
  2.  
  3. class ClientHandler : public QObject {
  4. Q_OBJECT
  5. public:
  6. ClientHandler(LibInstaller *parent, qhttp::server::QHttpRequest *req, qhttp::server::QHttpResponse *res);
  7.  
  8. public slots:
  9. bool makeLabel(QJsonObject *reply, int handle, QString type);
  10. bool openDevice(QJsonObject *reply, QString device);
  11. bool openDisk(QJsonObject *reply, int device_handle);
  12. bool listPartitions(QJsonObject *reply, int disk_handle);
  13. bool createPartition(QJsonObject *reply, int disk_handle, int start, int size);
  14.  
  15.  
  16. javascript:
  17. qx.core.Init.getApplication().RPC("createPartition", { disk_handle: 1, start:2, size: 3 }, console.log);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement