Show invite menu in wlm chat window immediately
[kdenetwork.git] / kopete / libkopete / ui / addcontactpage.h
blob516309c83dff97374d6eff1deed64057004c8236
1 /*
2 addcontactpage.h - Kopete's Add Contact GUI
4 Copyright (c) 2002 by Duncan Mac-Vicar Prett <duncan@kde.org>
6 Kopete (c) 2002-2004 by the Kopete developers <kopete-devel@kde.org>
8 *************************************************************************
9 * *
10 * This library is free software; you can redistribute it and/or *
11 * modify it under the terms of the GNU Lesser General Public *
12 * License as published by the Free Software Foundation; either *
13 * version 2 of the License, or (at your option) any later version. *
14 * *
15 *************************************************************************
18 #ifndef ADDCONTACTPAGE_H
19 #define ADDCONTACTPAGE_H
21 #include <QtGui/QWidget>
23 #include <kopeteprotocol.h>
24 #include <kopete_export.h>
26 /**
27 * @author Duncan Mac-Vicar P. <duncan@kde.org>
28 * @todo i want to be able to have a assync apply.
29 * (in the case of jabber, i need to translate the legacy id to a JID)
30 * this could also be useful in the case of MLSN to check if no error
31 * (and also jabber)
33 class KOPETE_EXPORT AddContactPage : public QWidget
35 Q_OBJECT
37 public:
38 AddContactPage(QWidget *parent=0);
39 virtual ~AddContactPage();
40 //Kopete::Protocol *protocol;
42 /**
43 * Plugin should reimplement this methode.
44 * return true if the content of the page are valid
46 * This method is called in the add account wizzard when the user press the next button
47 * and this page is showed. when it return false, it does not go to the nextpage.
48 * You should popup a dialog to explain WHY the page has not been validate
50 virtual bool validateData()=0;
52 /**
53 * add the contact to the specified meta contact, with the given account
54 * return false if the contact has not been added
56 virtual bool apply(Kopete::Account * , Kopete::MetaContact *) = 0;
58 signals:
59 /**
60 * New incarnation of validateData, emit it every time you think the current data is valid/invalid
62 void dataValid( AddContactPage *, bool);
65 #endif
66 // vim: set noet ts=4 sts=4 sw=4: