blob: a13bc6d4b5bce3af5d054b64d0d9a2c341b0b4ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
/*
addcontactpage.h - Kopete's Add Contact GUI
Copyright (c) 2002 by Duncan Mac-Vicar Prett <[email protected]>
Kopete (c) 2002-2004 by the Kopete developers <[email protected]>
*************************************************************************
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public *
* License as published by the Free Software Foundation; either *
* version 2 of the License, or (at your option) any later version. *
* *
*************************************************************************
*/
#ifndef ADDCONTACTPAGE_H
#define ADDCONTACTPAGE_H
#include <tqwidget.h>
#include <kopeteprotocol.h>
#include "kopete_export.h"
/**
* @author Duncan Mac-Vicar P. <[email protected]>
* @todo i want to be able to have a assync apply.
* (in the case of jabber, i need to translate the legacy id to a JID)
* this could also be usefull in the case of MLSN to check if no error (and also jabber)
*/
class KOPETE_EXPORT AddContactPage : public TQWidget
{
TQ_OBJECT
public:
AddContactPage(TQWidget *parent=0, const char *name=0);
virtual ~AddContactPage();
//Kopete::Protocol *protocol;
/**
* Plugin should reimplement this methode.
* return true if the content of the page are valid
*
* This method is called in the add account wizzard when the user press the next button
* and this page is showed. when it return false, it does not go to the nextpage.
* You should popup a dialog to explain WHY the page has not been validate
*/
virtual bool validateData()=0;
/**
* add the contact the the specified meta contact, with the given account
* return false if the contact has not been added
*/
virtual bool apply(Kopete::Account * , Kopete::MetaContact *) = 0;
signals:
/**
* New incarnation of validateData, emit it everytime you think the current data is valid/invalid
*/
void dataValid( AddContactPage *, bool);
};
#endif
|