X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=gui%2Fstyle.h;h=861d5c595e20ff90611be4fccd5e69a6773c25c5;hp=19c3be699650536fdcabb24cb02c25eabfd5025b;hb=2a068c11e76c7b34afb64d443dbb1afd2e208aaa;hpb=12369966345e76e3bba92f64c84c940ef4d8d916 diff --git a/gui/style.h b/gui/style.h index 19c3be69..861d5c59 100644 --- a/gui/style.h +++ b/gui/style.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005/06 by The Quassel Team * + * Copyright (C) 2005-07 by The Quassel Team * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -29,14 +29,20 @@ class Style { public: static void init(); - struct StringFormats { + struct UrlInfo { + int start, end; + QUrl url; + }; + + struct FormattedString { QString text; QList formats; + QList urls; }; static QString mircToInternal(QString); //static QString internalToMirc(QString); - static StringFormats internalToFormatted(QString); + static FormattedString internalToFormatted(QString); static int sepTsSender() { return 10; } static int sepSenderText() { return 10; }