6

I am creating an IRC client for the Ubuntu App Showdown. I need a way to be able to access an IRC server in QML (or JavaScript). What is the best way to accomplish this?

Yet Another User
  • 2,651
  • 3
  • 23
  • 37
Aaron Hill
  • 4,867
  • 4
  • 41
  • 62

3 Answers3

6

If there is no QML module that can help you accessing IRC servers, you will probably need to write a QML plugin in C++ that does that work as a backend. You can then use QML to implement the UI frontend.

David Planella
  • 15,420
  • 11
  • 77
  • 141
2

I would try to port irc-chatter (https://github.com/Venemo/irc-chatter) to Ubuntu-touch. Source is written in Qt/Qml (c++, see communiircclient.cpp).

Braiam
  • 66,947
  • 30
  • 177
  • 264
sUbuPack
  • 182
  • 8
  • 1
    I tested using a C++-function in qml on ubuntu-touch: see http://askubuntu.com/questions/266628/qt5-qtcreator-using-a-cfunction-in-main-qml-to-create-a-file-tmp – sUbuPack Aug 14 '13 at 11:42
0

Although it is not as performant as the QML solution, you can you IRC-js to communicate with the IRC Server. Here is the GibHub link to the project https://github.com/gf3/IRC-js

Nick Lehmann
  • 703
  • 2
  • 6
  • 16