Merged changes from branch "sput" r56:61 back into trunk.
[quassel.git] / gui / style.h
index 19c3be6..861d5c5 100644 (file)
@@ -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<QTextLayout::FormatRange> formats;
+      QList<UrlInfo> 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; }