X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtopia%2Fqtopiaui.cpp;fp=src%2Fqtopia%2Fqtopiaui.cpp;h=e41fb9b851c79d1bd8540f97ccceb02fa541a1fd;hp=0000000000000000000000000000000000000000;hb=48979ba2c343ab50ae93a8bb1c355ce79115bd4f;hpb=068a9f975337b4d0b08a438a2abd10ddf94e259d diff --git a/src/qtopia/qtopiaui.cpp b/src/qtopia/qtopiaui.cpp new file mode 100644 index 00000000..e41fb9b8 --- /dev/null +++ b/src/qtopia/qtopiaui.cpp @@ -0,0 +1,57 @@ +/*************************************************************************** + * Copyright (C) 2005-07 by The Quassel IRC Development Team * + * devel@quassel-irc.org * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + ***************************************************************************/ + +#include "qtopiaui.h" +#include "qtopiamainwin.h" +#include "qtopiauistyle.h" + +QtopiaUi::QtopiaUi(QtopiaMainWin *mw) : AbstractUi(), mainWin(mw) { + _style = new QtopiaUiStyle(); + connect(mainWin, SIGNAL(connectToCore(const QVariantMap &)), this, SIGNAL(connectToCore(const QVariantMap &))); + connect(mainWin, SIGNAL(disconnectFromCore()), this, SIGNAL(disconnectFromCore())); + + +} + +QtopiaUi::~QtopiaUi() { + delete _style; + delete mainWin; + +} + +void QtopiaUi::init() { + +} + +QtopiaUiStyle *QtopiaUi::style() const { + return _style; +} + +AbstractUiMsg *QtopiaUi::layoutMsg(const Message &msg) { + return mainWin->layoutMsg(msg); +} + +void QtopiaUi::connectedToCore() { + mainWin->connectedToCore(); +} + +void QtopiaUi::disconnectedFromCore() { + mainWin->disconnectedFromCore(); +}