• 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
kopetestatusgroupviewitem.cpp
Go to the documentation of this file.
1 /*
2  kopetestatusgroupviewitem.cpp
3 
4  Class to show a status folder
5 
6  Copyright (c) 2001-2003 by Duncan Mac-Vicar Prett <duncan@kde.org>
7 
8  Kopete (c) 2002 by the Kopete developers <kopete-devel@kde.org>
9 
10  *************************************************************************
11  * *
12  * This program is free software; you can redistribute it and/or modify *
13  * it under the terms of the GNU General Public License as published by *
14  * the Free Software Foundation; either version 2 of the License, or *
15  * (at your option) any later version. *
16  * *
17  *************************************************************************
18 */
19 
20 #include <kdebug.h>
21 #include "kopetestatusgroupviewitem.h"
22 
23 KopeteStatusGroupViewItem::KopeteStatusGroupViewItem( Kopete::OnlineStatus::StatusType status_ , Q3ListView *parent)
24  : Q3ListViewItem(parent)
25 {
26  m_status = status_;
27 }
28 
29 KopeteStatusGroupViewItem::~KopeteStatusGroupViewItem()
30 {
31 }
32 
33 QString KopeteStatusGroupViewItem::key( int, bool ) const
34 {
35  switch (m_status)
36  {
37  case Kopete::OnlineStatus::Online :
38  return "A";
39  break;
40  case Kopete::OnlineStatus::Away :
41  return "B";
42  break;
43  case Kopete::OnlineStatus::Offline :
44  return "C";
45  break;
46  case Kopete::OnlineStatus::Unknown :
47  default:
48  return "D";
49  }
50 }
51 
kopetestatusgroupviewitem.h
KopeteStatusGroupViewItem::~KopeteStatusGroupViewItem
~KopeteStatusGroupViewItem()
Definition: kopetestatusgroupviewitem.cpp:29
KopeteStatusGroupViewItem::KopeteStatusGroupViewItem
KopeteStatusGroupViewItem(Kopete::OnlineStatus::StatusType status_, Q3ListView *parent)
Definition: kopetestatusgroupviewitem.cpp:23
Q3ListViewItem
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:41 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