summaryrefslogtreecommitdiffstats
path: root/konversation/src/editnotifydialog.h
blob: d0e06a96fbc40300bf2eb7883abca5f621f1b998 (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
/*
  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.
*/

/*
  begin:     Wed Sep 1 2004
  copyright: (C) 2004 by Gary Cramblitt
  email:     garycramblitt@comcast.net
*/

#ifndef EDITNOTIFYDIALOG_H
#define EDITNOTIFYDIALOG_H

#include <kdialogbase.h>

/**
  The EditNotifyDialog implements the dialog for user to add or edit a
  notify.  A notify consists of a server network name and a nickname.
  User must pick the server network name from existing network names
  in the server list.

  @author Gary Cramblitt <garycramblitt@comcast.net>
*/

class KLineEdit;
class KComboBox;

class EditNotifyDialog : public KDialogBase
{
    Q_OBJECT
  

    public:
        explicit EditNotifyDialog(TQWidget* parent=0,const TQString& network=TQString(),
            const TQString& nickname=TQString());
        ~EditNotifyDialog();

        signals:
        void notifyChanged(const TQString& network,
            const TQString& nickname);
    protected slots:
        void slotOk();

    protected:
        KComboBox* m_networkNameCombo;
        KLineEdit* m_nicknameInput;
};
#endif