summaryrefslogtreecommitdiffstats
path: root/konversation/src/common.h
blob: f6af01a8ae3656e62777850a8c9389cd4d88252f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
  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.
*/

/*
  Copyright (C) 2004 Peter Simonsson <psn@linux.se>
  Copyright (C) 2006-2008 Eike Hein <hein@kde.org>
*/

#ifndef COMMON_H
#define COMMON_H

class TQCString;
class TQString;
class TQBitmap;
class TQPixmap;

namespace Konversation
{
    TQString removeIrcMarkup(const TQString& text);
    TQString tagURLs(const TQString& text, const TQString& fromNick, bool useCustomColor = true);
    TQBitmap overlayMasks( const TQBitmap *under, const TQBitmap *over );
    TQPixmap overlayPixmaps(const TQPixmap &under, const TQPixmap &over);
    bool isUtf8(const TQCString& text);

    enum TabNotifyType
    {
        tnfNick,
        tnfHighlight,
        tnfPrivate,
        tnfNormal,
        tnfSystem,
        tnfControl,
        tnfNone
    };

    enum ConnectionState
    {
        SSNeverConnected,
        SSDeliberatelyDisconnected,
        SSInvoluntarilyDisconnected,
        SSConnecting,
        SSConnected
    };

    enum ConnectionFlag 
    {
        SilentlyReuseConnection,
        PromptToReuseConnection,
        CreateNewConnection
    };
}
#endif