• 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
  • contactlist
contactlistproxymodel.h
Go to the documentation of this file.
1 /*
2  Kopete Contactlist Model
3 
4  Copyright (c) 2007 by Matt Rogers <mattr@kde.org>
5 
6  Kopete (c) 2002-2007 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 KOPETE_UI_CONTACTLISTPROXYMODEL_H
19 #define KOPETE_UI_CONTACTLISTPROXYMODEL_H
20 
21 #include <QSortFilterProxyModel>
22 
23 #include <kopete_export.h>
24 
25 namespace Kopete {
26 
27 class Group;
28 class Contactlist;
29 class MetaContact;
30 
31 namespace UI {
32 
36 class KOPETE_CONTACT_LIST_EXPORT ContactListProxyModel : public QSortFilterProxyModel
37 {
38 Q_OBJECT
39  public:
40  ContactListProxyModel(QObject* parent = 0);
41  ~ContactListProxyModel();
42 
43  public slots:
44  void slotConfigChanged();
45  protected:
46  bool lessThan(const QModelIndex &left, const QModelIndex &right) const;
47  bool filterAcceptsRow ( int source_row, const QModelIndex & source_parent ) const;
48  bool showOffline;
49  bool showEmptyFolders;
50  int rootRowCount;
51  bool sortScheduled;
52  private slots:
53  // Workaround Qt sorting bug
54  void proxyRowsInserted( const QModelIndex& parent, int start, int end );
55  void proxyRowsRemoved( const QModelIndex& parent, int start, int end );
56  void proxyCheckSort();
57  void forceSort();
58  private:
59  bool searchContactInfo( Kopete::MetaContact *mc, QRegExp searchPattern ) const;
60 };
61 
62 }
63 }
64 
65 #endif
Kopete::UI::ContactListProxyModel::rootRowCount
int rootRowCount
Definition: contactlistproxymodel.h:50
Kopete::UI::ContactListProxyModel::showOffline
bool showOffline
Definition: contactlistproxymodel.h:48
QObject
Kopete::Items::MetaContact
Definition: kopeteitembase.h:57
Kopete::Items::Group
Definition: kopeteitembase.h:57
Kopete::UI::ContactListProxyModel::sortScheduled
bool sortScheduled
Definition: contactlistproxymodel.h:51
Kopete::UI::ContactListProxyModel
Definition: contactlistproxymodel.h:36
QSortFilterProxyModel
Kopete::UI::ContactListProxyModel::showEmptyFolders
bool showEmptyFolders
Definition: contactlistproxymodel.h:49
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