3
oscarmessageplugin.h - Oscar Message Plugin
5
Copyright (c) 2006-2007 Roman Jarosz <kedgedev@centrum.cz>
7
Kopete (c) 2006-2007 by the Kopete developers <kopete-devel@kde.org>
9
*************************************************************************
11
* This library is free software; you can redistribute it and/or *
12
* modify it under the terms of the GNU Lesser General Public *
13
* License as published by the Free Software Foundation; either *
14
* version 2 of the License, or (at your option) any later version. *
16
*************************************************************************
19
#ifndef OSCARMESSAGEPLUGIN_H
20
#define OSCARMESSAGEPLUGIN_H
22
#include <QSharedDataPointer>
24
#include "kopete_export.h"
25
#include "oscartypes.h"
30
class LIBOSCAR_EXPORT MessagePlugin
34
enum Types { Unknown = 0, Message, StatusMsgExt, File, WebUrl,
35
Contacts, GreetingCard, Chat, XtrazScript };
38
SubStandardSend = 0x00,
39
SubContactsRequest = 0x02,
40
SubScriptInvitation = 0x01,
42
SubScriptUserRemove = 0x04,
43
SubScriptNotify = 0x08
47
MessagePlugin( const MessagePlugin& mp );
48
MessagePlugin& operator=( const MessagePlugin& mp );
51
/** get the message plugin type */
54
/** get the message plugin guid */
57
/** set the message plugin type */
58
void setType( Types type );
60
/** set the message plugin type from GUID */
61
void setType( Guid guid );
63
/** get the message plugin subtype */
64
WORD subTypeId() const;
66
/** set the message plugin subtype */
67
void setSubTypeId( WORD subType );
69
/** get the message plugin subtype text */
70
QByteArray subTypeText() const;
72
/** set the message plugin subtype text */
73
void setSubTypeText( const QByteArray& text );
75
/** get the message plugin data */
76
QByteArray data() const;
78
/** set the message plugin data */
79
void setData( const QByteArray &data );
82
class MessagePluginPrivate;
83
QSharedDataPointer<MessagePluginPrivate> d;