superkaramba
sknewstuff.h
00001 /* 00002 * Copyright (C) 2005 Ryan Nickell <p0z3r @ earthlink . net> 00003 * 00004 * This file is part of SuperKaramba. 00005 * 00006 * SuperKaramba is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation; either version 2 of the License, or 00009 * (at your option) any later version. 00010 * 00011 * SuperKaramba is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with SuperKaramba; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00019 ****************************************************************************/ 00020 00021 #ifndef SKNEWSTUFF_H 00022 #define SKNEWSTUFF_H 00023 00024 #include <kurl.h> 00025 #include "karambaapp.h" 00026 00027 #ifdef HAVE_CONFIG_H 00028 #include <config.h> 00029 #endif 00030 00031 #ifdef HAVE_KNEWSTUFF 00032 #include "knewstuff/knewstuff.h" 00033 #include "knewstuff/entry.h" 00034 00035 class ThemesDlg; 00036 class KArchiveDirectory; 00037 00038 class SKNewStuff : public KNewStuff 00039 { 00040 public: 00041 SKNewStuff( ThemesDlg * ); 00042 00043 bool install( const TQString &fileName ); 00044 bool createUploadFile( const TQString &fileName ); 00045 TQString downloadDestination( KNS::Entry *entry ); 00046 00047 private: 00048 ThemesDlg *mDlg; 00049 KURL m_sourceLink; 00050 }; 00051 00052 #endif //HAVE_KNEWSTUFF 00053 #endif //SKNEWSTUFF_H