• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdenetwork API Reference
  • KDE Home
  • Contact Us
 

kopete/kopete

  • sources
  • kde-4.12
  • kdenetwork
  • kopete
  • kopete
  • chatwindow
kopetechatwindowstyle.h
Go to the documentation of this file.
1  /*
2  kopetechatwindowstyle.h - A Chat Window Style.
3 
4  Copyright (c) 2005 by MichaĆ«l Larouche <larouche@kde.org>
5 
6  Kopete (c) 2002-2008 by the Kopete developers <kopete-devel@kde.org>
7 
8  *************************************************************************
9  * *
10  * This program is free software; you can redistribute it and/or modify *
11  * it under the terms of the GNU General Public License as published by *
12  * the Free Software Foundation; either version 2 of the License, or *
13  * (at your option) any later version. *
14  * *
15  *************************************************************************
16 */
17 #ifndef KOPETECHATWINDOWSTYLE_H
18 #define KOPETECHATWINDOWSTYLE_H
19 
20 
21 #include <QHash>
22 
23 #include <kopete_export.h>
24 
30 class KOPETECHATWINDOW_SHARED_EXPORT ChatWindowStyle : public QObject
31 {
32 public:
39  typedef QHash<QString,QString> StyleVariants;
40 
46  enum StyleBuildMode { StyleBuildFast, StyleBuildNormal};
47 
52  explicit ChatWindowStyle(const QString &styleName, StyleBuildMode styleBuildMode = StyleBuildNormal);
53  ChatWindowStyle(const QString &styleName, const QString &variantPath, StyleBuildMode styleBuildMode = StyleBuildFast);
54  ~ChatWindowStyle();
55 
59  bool isValid() const;
60 
69  StyleVariants getVariants();
70 
78  QString getStyleName() const;
79 
91  QString getStyleBaseHref() const;
92 
93  QString getHeaderHtml() const;
94  QString getFooterHtml() const;
95  QString getIncomingHtml() const;
96  QString getNextIncomingHtml() const;
97  QString getOutgoingHtml() const;
98  QString getNextOutgoingHtml() const;
99  QString getStatusHtml() const;
100 
101  QString getActionIncomingHtml() const;
102  QString getActionOutgoingHtml() const;
103 
104  QString getFileTransferIncomingHtml() const;
105 
106  QString getVoiceClipIncomingHtml() const;
107 
108  QString getOutgoingStateSendingHtml() const;
109  QString getOutgoingStateSentHtml() const;
110  QString getOutgoingStateErrorHtml() const;
111  QString getOutgoingStateUnknownHtml() const;
112 
117  bool hasActionTemplate() const;
118 
122  bool hasCompact( const QString & variant ) const;
123 
128  QString compact( const QString & variant ) const;
129 
133  void reload();
134 private:
138  void readStyleFiles();
139 
143  void init(const QString &styleName, StyleBuildMode styleBuildMode);
144 
148  void listVariants();
149 
150 private:
151  class Private;
152  Private * const d;
153 };
154 
155 #endif
ChatWindowStyle::StyleBuildMode
StyleBuildMode
This enum specifies the mode of the constructor.
Definition: kopetechatwindowstyle.h:46
ChatWindowStyle
This class represent a single chat window style.
Definition: kopetechatwindowstyle.h:30
QObject
ChatWindowStyle::StyleVariants
QHash< QString, QString > StyleVariants
StyleVariants is a typedef to a QHash key = Variant Name value = Path to variant CSS file...
Definition: kopetechatwindowstyle.h:39
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kopete/kopete

Skip menu "kopete/kopete"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal