File indexing completed on 2024-05-26 04:54:25
0001 // 0002 /* This file is part of the KDE project 0003 SPDX-FileCopyrightText: 2004 Nicolas GOUTTE <goutte@kde.org> 0004 0005 SPDX-License-Identifier: LGPL-2.0-or-later 0006 */ 0007 0008 #ifndef KOSTORE_BASE_H 0009 #define KOSTORE_BASE_H 0010 0011 #include <QUrl> 0012 0013 #include "KoStore.h" 0014 0015 /** 0016 * Helper class for KoStore (mainly for remote file support) 0017 */ 0018 class KoStoreBase : public KoStore 0019 { 0020 public: 0021 KoStoreBase(); 0022 ~KoStoreBase(void) override; 0023 public: 0024 enum FileMode { /*Bad=0,*/ Local=1, RemoteRead, RemoteWrite }; 0025 0026 protected: 0027 /** 0028 * original URL of the remote file 0029 * (undefined for a local file) 0030 */ 0031 QUrl m_url; 0032 FileMode m_fileMode; 0033 QString m_localFileName; 0034 QWidget* m_window; 0035 }; 0036 0037 #endif //KOSTORE_BASE_H