hk_kdeeximportdatabase.h

00001 // ****************************************************************************
00002 // copyright (c) 2000-2005 Horst Knorr <hk_classes@knoda.org>
00003 // This file is part of the hk_classes library.
00004 // This file may be distributed and/or modified under the terms of the
00005 // GNU Library Public License version 2 as published by the Free Software
00006 // Foundation and appearing in the file COPYING included in the
00007 // packaging of this file.
00008 // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00009 // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00010 // ****************************************************************************
00011 #ifndef HK_KDEEXIMPORTDATABASE_H
00012 #define HK_KDEEXIMPORTDATABASE_H
00013 #include "hk_kdeeximportdatabasebase.h"
00014 #include <hk_dbvisible.h>
00015 class hk_connection;
00016 class hk_database;
00017 class hk_kdedblistview;
00018 class QProgressDialog;
00019 
00020 
00021 class hk_kdeeximportdatabase : public hk_kdeeximportdatabasebase, public hk_dbvisible
00022 {
00023     Q_OBJECT
00024 
00025 public:
00026     enum enum_mode{m_import,m_export};
00027     hk_kdeeximportdatabase( hk_database* db, hk_connection* con, enum_mode mode, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
00028     ~hk_kdeeximportdatabase();
00029 
00030 public slots:
00031     void upload_clicked();
00032     void slot_selection_changed();
00033     void slot_database_selected(int);
00034     void copying_cancelled();
00035     void leftnewbutton_clicked();
00036     void rightnewbutton_clicked();
00037       virtual void help_clicked();
00038 
00039 
00040     protected:
00041  static  bool set_progress(long int,long int,const hk_string&);
00042    virtual void        list_changes(listtype type);
00043      void        dblist_changes(void);
00044 virtual void keyPressEvent ( QKeyEvent * e );
00045 
00046    protected slots:
00047 
00048    virtual void accept(void);
00049 
00050     private:
00051     void set_objects(void);
00052     void upload_file(void);
00053     void upload_file(const hk_string&,filetype );
00054     void copy_whole_database(void);
00055     void copy_all_tables(void);
00056     void copy_all_queries(void);
00057     void copy_all_views(void);
00058     void copy_all_forms(void);
00059     void copy_all_reports(void);
00060     void copy_all_files(filetype);
00061     enum_mode p_mode;
00062     hk_kdedblistview* p_left;
00063     hk_kdedblistview* p_right;
00064     hk_database* p_database;
00065     hk_database* p_connectiondatabase;
00066     hk_connection* p_connection;
00067 static QProgressDialog* p_progressdialog;
00068 static bool p_cancelcopying;
00069 };
00070 
00071 #endif // HK_KDEEXIMPORTDATABASE_H

Generated on Tue Nov 28 00:05:29 2006 for Databasehandlingdialogclasses by  doxygen 1.5.0