1
/**************************************************************************
3
* Copyright 2015 Canonical Ltd.
4
* Copyright 2015 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 "networklocation.h"
26
#include "smblocationauthentication.h"
27
#include "smbobject.h"
30
class SmbLocation : public NetworkLocation, public SmbLocationAuthentication
34
explicit SmbLocation(int type, QObject *parent=0);
38
virtual DirItemInfo * newItemInfo(const QString& urlPath);
39
virtual LocationItemDirIterator * newDirIterator(const QString & path,
40
QDir::Filters filters,
41
QDirIterator::IteratorFlags flags = QDirIterator::NoIteratorFlags,
42
LocationItemDirIterator::LoadMode loadmode = LocationItemDirIterator::LoadOnConstructor);
43
virtual LocationItemFile * newFile(const QString & path);
44
virtual LocationItemDir * newDir(const QString & dir = QLatin1String(0));
45
virtual bool isThereDiskSpace(const QString& pathname, qint64 requiredSize);
46
virtual QString urlBelongsToLocation(const QString& urlPath, int indexOfColonAndSlash);
47
virtual QString currentAuthenticationUser();
48
virtual QString currentAuthenticationPassword();
51
virtual void setAuthentication(const QString& user,
52
const QString& password);
59
#endif // SMBLOCATION_H