make webinterface translatable. there are around 20 short strings, all with context...
[kdenetwork.git] / kopete / protocols / sms / smscontact.h
blobce97a29558e9bcde668b97ddbbbb701878f9acdb
1 /* *************************************************************************
2 * copyright: (C) 2003 Richard Lärkäng <nouseforaname@home.se> *
3 * copyright: (C) 2003 Gav Wood <gav@kde.org> *
4 *************************************************************************
5 */
7 /* *************************************************************************
8 * *
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. *
13 * *
14 *************************************************************************
17 #ifndef SMSCONTACT_H
18 #define SMSCONTACT_H
20 #include "kopetecontact.h"
21 #include "kopetemessage.h"
23 #include <qstring.h>
25 namespace Kopete { class ChatSession; }
26 namespace Kopete { class MetaContact; }
28 class KActionCollection;
29 class KAction;
31 class SMSContact : public Kopete::Contact
33 Q_OBJECT
34 public:
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();
44 /**
45 * Serialize contact
47 virtual void serialize( QMap<QString, QString> &serializedData,
48 QMap<QString, QString> &addressBookData );
50 Kopete::ChatSession* manager( Kopete::Contact::CanCreateFlags canCreate = Kopete::Contact::CanCreate );
52 public slots:
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);
58 private slots:
59 void userPrefs();
60 void slotChatSessionDestroyed();
62 private:
63 KAction* m_actionPrefs;
65 QString m_phoneNumber;
67 Kopete::ChatSession* m_msgManager;
70 #endif
72 // vim: set noet ts=4 sts=4 sw=4: