1
/**************************************************************************
3
* Copyright 2014 Canonical Ltd.
4
* Copyright 2014 Carlos J Mazieri <carlos.mazieri@gmail.com>
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU Lesser General Public License as published by
8
* the Free Software Foundation; version 3.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU Lesser General Public License for more details.
15
* You should have received a copy of the GNU Lesser General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
25
#include "diriteminfo.h"
29
* \brief The UrlItemInfo is an abstract class that provides URL root
31
* Basically it differs from DirItemInfo in the field \a d_ptr->_normalizedPath, it must store the
32
* url like trash:///Item, while the field d_ptr->_path stores the current path in the file system as usual.
36
class UrlItemInfo : public DirItemInfo
39
static QStringList separatePathFilename(const QString& urlPath);
41
UrlItemInfo(const QString& urlPath, const QString& urlRoot);
45
void setRoot(const QString& urlRoot);
49
void init(const QString& urlPath);
50
void verifyHost(const QString urlPath);
53
#endif // URLITEMINFO_H