• 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.14
  • kdenetwork
  • kopete
  • kopete
  • chatwindow
kopetechatwindowstylemanager.h
Go to the documentation of this file.
1  /*
2  kopetechatwindowstylemanager.h - Manager all chat window styles
3 
4  Copyright (c) 2005 by MichaĆ«l Larouche <larouche@kde.org>
5 
6  Kopete (c) 2002-2005 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 
18 #ifndef KOPETECHATWINDOWSTYLEMANAGER_H
19 #define KOPETECHATWINDOWSTYLEMANAGER_H
20 
21 #include <QObject>
22 #include <QHash>
23 
24 #include <kfileitem.h>
25 #include <kopete_export.h>
26 
27 
28 class ChatWindowStyle;
46 class KOPETECHATWINDOW_SHARED_EXPORT ChatWindowStyleManager : public QObject
47 {
48  Q_OBJECT
49 public:
58  enum StyleInstallStatus { StyleInstallOk = 0, StyleNotValid, StyleNoDirectoryValid, StyleCannotOpen, StyleUnknow };
59 
63  ~ChatWindowStyleManager();
64 
69  static ChatWindowStyleManager *self();
70 
75  void loadStyles();
76 
80  QStringList getAvailableStyles() const;
81 
82 public slots:
90  int installStyle(const QString &styleBundlePath);
91 
98  bool removeStyle(const QString &styleName);
99 
110  ChatWindowStyle *getStyleFromPool(const QString &styleName);
111 
123  ChatWindowStyle *getValidStyleFromPool(const QString &styleName);
124 
125 signals:
130  void loadStylesFinished();
131 
132 private slots:
137  void slotNewStyles(const KFileItemList &dirList);
142  void slotDirectoryFinished();
143 
144 private:
149  ChatWindowStyleManager(QObject *parent = 0);
150  class Private;
151  Private * const d;
152 };
153 
154 #endif
ChatWindowStyle
This class represent a single chat window style.
Definition: kopetechatwindowstyle.h:30
QObject
QString
QStringList
ChatWindowStyleManager
Sigleton class that handle Chat Window styles.
Definition: kopetechatwindowstylemanager.h:46
ChatWindowStyleManager::StyleInstallStatus
StyleInstallStatus
The StyleInstallStatus enum.
Definition: kopetechatwindowstylemanager.h:58
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:08 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