qmlFrontend/hwengine.h
branchqmlfrontend
changeset 11423 e045dc60c37e
parent 11422 c6c6a4b32cea
child 11424 86c13e5662f1
equal deleted inserted replaced
11422:c6c6a4b32cea 11423:e045dc60c37e
    36 
    36 
    37     Q_INVOKABLE void connect(const QString & host, quint16 port);
    37     Q_INVOKABLE void connect(const QString & host, quint16 port);
    38 
    38 
    39     Q_INVOKABLE void sendChatMessage(const QString & msg);
    39     Q_INVOKABLE void sendChatMessage(const QString & msg);
    40 
    40 
       
    41     Q_INVOKABLE void joinRoom(const QString & roomName);
       
    42 
    41 signals:
    43 signals:
       
    44     void errorMessage(const QString & message);
       
    45     void warningMessage(const QString & message);
       
    46 
    42     void previewImageChanged();
    47     void previewImageChanged();
    43     void localTeamAdded(const QString & teamName, int aiLevel);
    48     void localTeamAdded(const QString & teamName, int aiLevel);
    44     void localTeamRemoved(const QString & teamName);
    49     void localTeamRemoved(const QString & teamName);
    45 
    50 
    46     void playingTeamAdded(const QString & teamName, int aiLevel, bool isLocal);
    51     void playingTeamAdded(const QString & teamName, int aiLevel, bool isLocal);
    50 
    55 
    51     void netConnected();
    56     void netConnected();
    52     void netDisconnected(const QString & message);
    57     void netDisconnected(const QString & message);
    53 
    58 
    54     void lobbyClientAdded(const QString & clientName);
    59     void lobbyClientAdded(const QString & clientName);
    55     void lobbyClientRemoved(const QString & clientName);
    60     void lobbyClientRemoved(const QString & clientName, const QString & reason);
    56     void lobbyChatLine(const QString & nickname, const QString & line);
    61     void lobbyChatLine(const QString & nickname, const QString & line);
    57 
    62 
    58     void roomAdded(quint32 flags
    63     void roomAdded(quint32 flags
    59                    , const QString & name
    64                    , const QString & name
    60                    , int players
    65                    , int players