korganizer

importdialog.h
1 /*
2  This file is part of KOrganizer.
3 
4  Copyright (c) 2003,2004 Cornelius Schumacher <schumacher@kde.org>
5  Copyright (C) 2004 Reinhold Kainhofer <reinhold@kainhofer.com>
6 
7  This program is free software; you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation; either version 2 of the License, or
10  (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program; if not, write to the Free Software
19  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 
21  As a special exception, permission is given to link this program
22  with any edition of TQt, and distribute the resulting executable,
23  without including the source code for TQt in the source distribution.
24 */
25 #ifndef IMPORTDIALOG_H
26 #define IMPORTDIALOG_H
27 
28 #include <kdialogbase.h>
29 
30 #include <kurl.h>
31 
32 
33 class TQRadioButton;
34 
35 class ImportDialog : public KDialogBase
36 {
37  TQ_OBJECT
38 
39  public:
40  ImportDialog( const KURL &url, TQWidget *parent, bool isPart );
41  ~ImportDialog();
42 
43  public slots:
44  void slotOk();
45 
46  signals:
47  void dialogFinished( ImportDialog * );
48  void openURL( const KURL &, bool );
49  void newWindow( const KURL & );
50  void addResource( const KURL & );
51 
52  private:
53  KURL mUrl;
54 
55  TQRadioButton *mAddButton;
56  TQRadioButton *mMergeButton;
57  TQRadioButton *mOpenButton;
58 };
59 
60 #endif