Databasehandlingdialogclasses  0.5.3
hk_kdeeximportdatabase.h
1 // ****************************************************************************
2 // copyright (c) 2000-2005 Horst Knorr <hk_classes@knoda.org>
3 // This file is part of the hk_classes library.
4 // This file may be distributed and/or modified under the terms of the
5 // GNU Library Public License version 2 as published by the Free Software
6 // Foundation and appearing in the file COPYING included in the
7 // packaging of this file.
8 // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
9 // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
10 // ****************************************************************************
11 #ifndef HK_KDEEXIMPORTDATABASE_H
12 #define HK_KDEEXIMPORTDATABASE_H
13 #include "hk_kdeeximportdatabasebase.h"
14 #include <hk_dbvisible.h>
15 class hk_connection;
16 class hk_database;
17 class hk_kdedblistview;
18 class QProgressDialog;
19 
20 
21 class hk_kdeeximportdatabase : public hk_kdeeximportdatabasebase, public hk_dbvisible
22 {
23  Q_OBJECT
24 
25 public:
26  enum enum_mode{m_import,m_export};
27  hk_kdeeximportdatabase( hk_database* db, hk_connection* con, enum_mode mode, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
29 
30 public slots:
31  void upload_clicked();
32  void slot_selection_changed();
33  void slot_database_selected(int);
34  void copying_cancelled();
35  void leftnewbutton_clicked();
36  void rightnewbutton_clicked();
37  virtual void help_clicked();
38 
39 
40  protected:
41  static bool set_progress(long int,long int,const hk_string&);
42  virtual void list_changes(listtype type);
43  void dblist_changes(void);
44 virtual void keyPressEvent ( QKeyEvent * e );
45 
46  protected slots:
47 
48  virtual void accept(void);
49 
50  private:
51  void set_objects(void);
52  void upload_file(void);
53  void upload_file(const hk_string&,filetype );
54  void copy_whole_database(void);
55  void copy_all_tables(void);
56  void copy_all_queries(void);
57  void copy_all_views(void);
58  void copy_all_forms(void);
59  void copy_all_reports(void);
60  void copy_all_files(filetype);
61  enum_mode p_mode;
62  hk_kdedblistview* p_left;
63  hk_kdedblistview* p_right;
64  hk_database* p_database;
65  hk_database* p_connectiondatabase;
66  hk_connection* p_connection;
67 static QProgressDialog* p_progressdialog;
68 static bool p_cancelcopying;
69 };
70 
71 #endif // HK_KDEEXIMPORTDATABASE_H
Definition: hk_kdedblistview.h:51
Definition: hk_kdeeximportdatabasebase.h:28
Definition: hk_kdeeximportdatabase.h:21