kexi

kexistartupdata.cpp

00001 /* This file is part of the KDE project
00002    Copyright (C) 2004-2005 Jaroslaw Staniek <js@iidea.pl>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License as published by the Free Software Foundation; either
00007    version 2 of the License, or (at your option) any later version.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  * Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #include "kexistartupdata.h"
00021 #include "kexi.h"
00022 
00023 #include <kexidb/driver.h>
00024 #include <kexidb/drivermanager.h>
00025 
00026 #include <qfileinfo.h>
00027 #include <qcstring.h>
00028 
00029 KexiStartupData::KexiStartupData()
00030     : m_projectData(0)
00031     , m_action(KexiStartupData::DoNothing)
00032     , m_forcedFinalMode(false)
00033     , m_forcedDesignMode(false)
00034 //  , m_createDB(false)
00035 //  , m_dropDB(false)
00036 //  , m_alsoOpenDB(false)
00037 {
00038 }
00039 
00040 KexiStartupData::~KexiStartupData()
00041 {
00042 }
00043 
00044 KexiProjectData *KexiStartupData::projectData() const
00045 {
00046     return m_projectData;
00047 }
00048 
00049 KexiStartupData::Action KexiStartupData::action() const
00050 {
00051     return m_action;
00052 }
00053 
00054 bool KexiStartupData::forcedFinalMode() const
00055 {
00056     return m_forcedFinalMode;
00057 }
00058 
00059 bool KexiStartupData::forcedDesignMode() const
00060 {
00061     return m_forcedDesignMode;
00062 }
00063 
00064 KexiStartupData::Import KexiStartupData::importActionData() const
00065 {
00066     return m_importActionData;
00067 }
00068 
00069 KexiStartupData::Import::Import()
00070 {
00071 }
00072 
00073 KexiStartupData::Import::operator bool() const {
00074     return !fileName.isEmpty() && !mimeType.isEmpty();
00075 }
KDE Home | KDE Accessibility Home | Description of Access Keys