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

kopete/libkopete

Kopete::Group

Kopete::Group Class Reference

#include <kopetegroup.h>

Inheritance diagram for Kopete::Group:

Inheritance graph
[legend]

List of all members.


Detailed Description

Class which represents the Group.

A Group is a ConstacListElement which means plugin can save data.

some static group are availavle from this class: topLevel and temporary

Author:
Olivier Goffart <ogoffart@kde.org>

Definition at line 44 of file kopetegroup.h.


Public Types

enum  GroupType { Normal = 0, Temporary, TopLevel }
typedef QList< Group * > List

Public Slots

void sendMessage ()

Signals

void displayNameChanged (Kopete::Group *group, const QString &oldName)

Public Member Functions

 Group ()
 Group (const QString &displayName, GroupType type=Normal)
 ~Group ()
QString displayName () const
void setDisplayName (const QString &newName)
GroupType type () const
void setType (GroupType newType)
uint groupId () const
QList< MetaContact * > members () const
void setExpanded (bool expanded)
bool isExpanded () const
void setGroupId (uint groupId)
uint uniqueGroupId () const
void setUniqueGroupId (uint uniqueGroupId)

Static Public Member Functions

static Group * topLevel ()
static Group * temporary ()

Properties

QString displayName
uint groupId
bool expanded

Member Typedef Documentation

typedef QList<Group*> Kopete::Group::List

Definition at line 53 of file kopetegroup.h.


Member Enumeration Documentation

enum Kopete::Group::GroupType

Kinds of groups.

Enumerator:
Normal 
Temporary 
TopLevel 

Definition at line 56 of file kopetegroup.h.


Constructor & Destructor Documentation

Kopete::Group::Group (  ) 

Create an empty group.

Note that the constructor will not add the group automatically to the contact list. Use ContactList::addGroup() to add it

Definition at line 61 of file kopetegroup.cpp.

Kopete::Group::Group ( const QString &  displayName,
GroupType  type = Normal 
) [explicit]

Create a group of the specified type.

Overloaded constructor to create a group with a display name of the specified type.

Definition at line 51 of file kopetegroup.cpp.

Kopete::Group::~Group (  ) 

Definition at line 70 of file kopetegroup.cpp.


Member Function Documentation

QString Kopete::Group::displayName (  )  const

Return the group's display name.

Returns:
the display name of the group

void Kopete::Group::setDisplayName ( const QString &  newName  ) 

Rename the group.

Definition at line 91 of file kopetegroup.cpp.

Group::GroupType Kopete::Group::type (  )  const

Returns:
the group type

Definition at line 108 of file kopetegroup.cpp.

void Kopete::Group::setType ( GroupType  newType  ) 

Set the group type.

Definition at line 113 of file kopetegroup.cpp.

uint Kopete::Group::groupId (  )  const

Returns:
the unique id for this group

QList< MetaContact * > Kopete::Group::members (  )  const

child metacontact This function is not very efficient - it searches through all the metacontacts in the contact list

Returns:
the members of this group

Definition at line 79 of file kopetegroup.cpp.

void Kopete::Group::setExpanded ( bool  expanded  ) 

Set if the group is expanded.

Definition at line 118 of file kopetegroup.cpp.

bool Kopete::Group::isExpanded (  )  const

Returns:
true if the group is expanded.

Returns:
false otherwise

Definition at line 123 of file kopetegroup.cpp.

Group * Kopete::Group::topLevel (  )  [static]

Returns:
a Group pointer to the toplevel group

Definition at line 33 of file kopetegroup.cpp.

Group * Kopete::Group::temporary (  )  [static]

Returns:
a Group pointer to the temporary group

Definition at line 41 of file kopetegroup.cpp.

void Kopete::Group::setGroupId ( uint  groupId  ) 

Definition at line 136 of file kopetegroup.cpp.

uint Kopete::Group::uniqueGroupId (  )  const

Definition at line 141 of file kopetegroup.cpp.

void Kopete::Group::setUniqueGroupId ( uint  uniqueGroupId  ) 

Definition at line 146 of file kopetegroup.cpp.

void Kopete::Group::sendMessage (  )  [slot]

Send a message to all contacts in the group.

Definition at line 151 of file kopetegroup.cpp.

void Kopete::Group::displayNameChanged ( Kopete::Group *  group,
const QString &  oldName 
) [signal]

Emitted when the group has been renamed.


Property Documentation

QString Kopete::Group::displayName [read, write]

Definition at line 46 of file kopetegroup.h.

uint Kopete::Group::groupId [read]

Definition at line 47 of file kopetegroup.h.

bool Kopete::Group::expanded [read, write]

Definition at line 48 of file kopetegroup.h.


The documentation for this class was generated from the following files:
  • kopetegroup.h
  • kopetegroup.cpp

kopete/libkopete

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

kdenetwork

Skip menu "kdenetwork"
  • kget
  • kopete
  •   kopete
  •   libkopete
  •       libpapillon
  • krfb
Generated for kdenetwork by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal