summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/oscar/icq/ui/icqauthreplydialog.h
blob: f32d45696ae85b2625471046d7744e64059ddd7e (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
/*
   Kopete Oscar Protocol
   icqauthreplydialog.h - ICQ authorization reply dialog

   Copyright (c) 2004 Gustavo Pichorim Boiko <gustavo.boiko@kdemail.net>

   Kopete (c) 2002-2004 by the Kopete developers <kopete-devel@kde.org>

   *************************************************************************
   *                                                                       *
   * 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 ICQAUTHREPLYDIALOG_H
#define ICQAUTHREPLYDIALOG_H

#include <kdialogbase.h>

class ICQAuthReplyUI;

/**
 * A dialog to ask user what to do when a contact requests authorization
 * @author Gustavo Pichorim Boiko
 */
class ICQAuthReplyDialog : public KDialogBase
{
Q_OBJECT
public:
	ICQAuthReplyDialog(TQWidget *parent = 0, const char *name = 0, bool wasRequested = true);
	~ICQAuthReplyDialog();
	
	void setUser( const TQString& user );
	void setRequestReason( const TQString& reason );
	TQString reason();
	bool grantAuth();
private:
	bool m_wasRequested;
	ICQAuthReplyUI *m_ui;
};

#endif