summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/oscar/icq/ui/icqauthreplydialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/oscar/icq/ui/icqauthreplydialog.h')
-rw-r--r--kopete/protocols/oscar/icq/ui/icqauthreplydialog.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/kopete/protocols/oscar/icq/ui/icqauthreplydialog.h b/kopete/protocols/oscar/icq/ui/icqauthreplydialog.h
new file mode 100644
index 00000000..da27b241
--- /dev/null
+++ b/kopete/protocols/oscar/icq/ui/icqauthreplydialog.h
@@ -0,0 +1,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(QWidget *parent = 0, const char *name = 0, bool wasRequested = true);
+ ~ICQAuthReplyDialog();
+
+ void setUser( const QString& user );
+ void setRequestReason( const QString& reason );
+ QString reason();
+ bool grantAuth();
+private:
+ bool m_wasRequested;
+ ICQAuthReplyUI *m_ui;
+};
+
+#endif