<commit_before>/***************************************************************************
                          kopetecontact.h  -  Kopete Contact
                             -------------------
    begin                : Wed Jan 2 2002
    copyright            : (C) 2002 by <NAME>
    email                : <EMAIL>
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef KOPETECONTACT_H
#define KOPETECONTACT_H

#include "contactlist.h"

#include <qobject.h>

class QString;
class KopeteEvent;

/**
* This class abstracts a generic contact/buddie.
* Use it for inserting contacts in the contact list for example.
*/

class KopeteContact : public QObject
{
	Q_OBJECT
	public:
		/**
		* Contact's status
		**/
		enum ContactStatus { Online, Away, Offline };

		/**
		* Usually a contact is owned by a protocol plugin
		**/
		KopeteContact(QObject *parent);
		~KopeteContact();

		/**
		* set name of an KopeteContact
		* This is the string that gets drawn in the listview
		**/
		virtual void setName( const QString &name );
		/**
		* return name of an KopeteContact
		**/
		virtual QString name() const;
        /**
		* return status of an KopeteContact
		**/
		virtual ContactStatus status() const;
		/**
		* The text describing the contact's status
		* The default implement does what you'd expect,
		* but you might want to reimplement it for more
		* fine-grained reporting of status
		**/
		virtual QString statusText() const;
		/**
		* The name of the icon associated with the contact's status
		**/
		virtual QString statusIcon() const;
        /**
		* The "importance" of this contact, used for sorting
		* This is almost always related to the contact's status
		* Here is how ICQ does it:
		* 25 = Free For Chat
		* 20 = Online
		* 15 = Away (temporary away)
		* 10 = Not Available (extended away)
		* 5 = Invisible
		* 0 = Offline
        *
		* The default implementation returns 20 for Online,
		* 10 for away, and 0 for offline
		* Please make your importance values between 0 and 25,
		* and try to follow ICQ's scheme somewhat
		**/
		virtual int importance() const;
        /**
		* This should typically pop up a KopeteChatWindow
		**/<commit_msg>Don't mix tabs and spaces<commit_after>/***************************************************************************
                          kopetecontact.h  -  Kopete Contact
                             -------------------
    begin                : Wed Jan 2 2002
    copyright            : (C) 2002 by <NAME>
    email                : <EMAIL>
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef KOPETECONTACT_H
#define KOPETECONTACT_H

#include "contactlist.h"

#include <qobject.h>

class QString;
class KopeteEvent;

/**
* This class abstracts a generic contact/buddie.
* Use it for inserting contacts in the contact list for example.
*/

class KopeteContact : public QObject
{
	Q_OBJECT
	public:
		/**
		* Contact's status
		**/
		enum ContactStatus { Online, Away, Offline };

		/**
		* Usually a contact is owned by a protocol plugin
		**/
		KopeteContact(QObject *parent);
		~KopeteContact();

		/**
		* set name of an KopeteContact
		* This is the string that gets drawn in the listview
		**/
		virtual void setName( const QString &name );
		/**
		* return name of an KopeteContact
		**/
		virtual QString name() const;
		/**
		* return status of an KopeteContact
		**/
		virtual ContactStatus status() const;
		/**
		* The text describing the contact's status
		* The default implement does what you'd expect,
		* but you might want to reimplement it for more
		* fine-grained reporting of status
		**/
		virtual QString statusText() const;
		/**
		* The name of the icon associated with the contact's status
		**/
		virtual QString statusIcon() const;
		/**
		* The "importance" of this contact, used for sorting
		* This is almost always related to the contact's status
		* Here is how ICQ does it:
		* 25 = Free For Chat
		* 20 = Online
		* 15 = Away (temporary away)
		* 10 = Not Available (extended away)
		* 5 = Invisible
		* 0 = Offline
		*
		* The default implementation returns 20 for Online,
		* 10 for away, and 0 for offline
		* Please make your importance values between 0 and 25,
		* and try to follow ICQ's scheme somewhat
		**/
		virtual int importance() const;
		/**
		* This should typically pop up a KopeteChatWindow
		**/
{'fraction_non_alphanumeric': 0.18425728500355365, 'fraction_numerical': 0.009950248756218905, 'mean_word_length': 2.313125367863449, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 14, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6168679', 'n_tokens_mistral': 1598, 'n_tokens_neox': 1391, 'n_words': 558}