Main Page | Class Hierarchy | Class List | Directories | File List | Class Members

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     
00038     
00039     protected:
00040  static  bool set_progress(long int,long int,const hk_string&);
00041    virtual void        list_changes(listtype type);
00042      void        dblist_changes(void);
00043    
00044    protected slots:
00045    
00046    virtual void accept(void);
00047     
00048     private:
00049     void set_objects(void);
00050     void upload_file(void);
00051     void upload_file(const hk_string&,filetype );
00052     void copy_whole_database(void);
00053     void copy_all_tables(void);
00054     void copy_all_queries(void);
00055     void copy_all_views(void);
00056     void copy_all_forms(void);
00057     void copy_all_reports(void);
00058     void copy_all_files(filetype);
00059     enum_mode p_mode;
00060     hk_kdedblistview* p_left;
00061     hk_kdedblistview* p_right;
00062     hk_database* p_database;
00063     hk_database* p_connectiondatabase;
00064     hk_connection* p_connection;
00065 static QProgressDialog* p_progressdialog;
00066 static bool p_cancelcopying;
00067 };
00068 
00069 #endif // HK_KDEEXIMPORTDATABASE_H

Generated on Tue Sep 13 04:14:42 2005 for Databasehandlingdialogclasses by  doxygen 1.4.4