1 /* *************************************************************************
2 * copyright: (C) 2003 Richard Lärkäng <nouseforaname@home.se> *
3 * copyright: (C) 2003 Gav Wood <gav@kde.org> *
4 *************************************************************************
7 /* *************************************************************************
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
14 *************************************************************************
23 #include <q3ptrdict.h>
24 #include <qstringlist.h>
26 #include "kopeteprotocol.h"
27 #include "kopeteonlinestatus.h"
28 #include "kopetecontact.h"
32 namespace Kopete
{ class Contact
; }
33 namespace Kopete
{ class MetaContact
; }
34 namespace Kopete
{ class Message
; }
35 namespace Kopete
{ class ChatSession
; }
37 class SMSProtocol
: public Kopete::Protocol
42 SMSProtocol(QObject
*parent
, const QVariantList
&args
);
45 static SMSProtocol
*protocol();
48 * Deserialize contact data
50 virtual Kopete::Contact
*deserializeContact(Kopete::MetaContact
*metaContact
,
51 const QMap
<QString
, QString
> &serializedData
, const QMap
<QString
, QString
> &addressBookData
);
53 virtual AddContactPage
*createAddContactWidget(QWidget
*parent
, Kopete::Account
*i
);
54 virtual KopeteEditAccountWidget
*createEditAccountWidget(Kopete::Account
*account
, QWidget
*parent
);
55 virtual Kopete::Account
*createNewAccount(const QString
&accountId
);
57 const Kopete::OnlineStatus SMSOnline
;
58 const Kopete::OnlineStatus SMSOffline
;
59 const Kopete::OnlineStatus SMSConnecting
;
62 static SMSProtocol
*s_protocol
;
67 // vim: set noet ts=4 sts=4 sw=4: