mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-26 00:23:55 -07:00
Connect/disconnect and join game/room intents.
Took 3 hours 14 minutes Took 2 seconds
This commit is contained in:
parent
47a80ddb12
commit
9729c6668d
26 changed files with 514 additions and 3 deletions
22
cockatrice/src/interface/intents/url_parser.h
Normal file
22
cockatrice/src/interface/intents/url_parser.h
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#ifndef COCKATRICE_URL_PARSER_H
|
||||
#define COCKATRICE_URL_PARSER_H
|
||||
#include <QObject>
|
||||
#include <qt5/QtCore/qurlquery.h>
|
||||
|
||||
class MainWindow;
|
||||
class IntentUrlParser : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
IntentUrlParser(QObject *parent, MainWindow *mainWindow);
|
||||
void handle(const QString &urlStr);
|
||||
void handleJoinGame(const QUrlQuery &query);
|
||||
|
||||
void parse(QString url);
|
||||
|
||||
private:
|
||||
MainWindow *mainWindow;
|
||||
};
|
||||
|
||||
#endif // COCKATRICE_URL_PARSER_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue