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 *************************************************************************
20 #include "kopetecontact.h"
21 #include "kopetemessage.h"
25 namespace Kopete
{ class ChatSession
; }
26 namespace Kopete
{ class MetaContact
; }
28 class KActionCollection
;
31 class SMSContact
: public Kopete::Contact
35 SMSContact( Kopete::Account
* _account
, const QString
&phoneNumber
,
36 const QString
&displayName
, Kopete::MetaContact
*parent
);
38 KActionCollection
* customContextMenuActions(QWidget
*parent
);
40 const QString
&phoneNumber();
41 void setPhoneNumber( const QString phoneNumber
);
42 const QString
qualifiedNumber();
47 virtual void serialize( QMap
<QString
, QString
> &serializedData
,
48 QMap
<QString
, QString
> &addressBookData
);
50 Kopete::ChatSession
* manager( Kopete::Contact::CanCreateFlags canCreate
= Kopete::Contact::CanCreate
);
53 virtual void slotUserInfo();
54 virtual void deleteContact();
55 void slotSendingSuccess(const Kopete::Message
&msg
);
56 void slotSendingFailure(const Kopete::Message
&msg
, const QString
&error
);
60 void slotChatSessionDestroyed();
63 KAction
* m_actionPrefs
;
65 QString m_phoneNumber
;
67 Kopete::ChatSession
* m_msgManager
;
72 // vim: set noet ts=4 sts=4 sw=4: