]> git.sesse.net Git - kdenlive/blob - src/utils/abstractservice.cpp
If a file has a license (for example when imported through online resource widget),
[kdenlive] / src / utils / abstractservice.cpp
1 /***************************************************************************
2  *   Copyright (C) 2011 by Jean-Baptiste Mardelle (jb@kdenlive.org)        *
3  *                                                                         *
4  *                                                                         *
5  *   This program is free software; you can redistribute it and/or modify  *
6  *   it under the terms of the GNU General Public License as published by  *
7  *   the Free Software Foundation; either version 2 of the License, or     *
8  *   (at your option) any later version.                                   *
9  *                                                                         *
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 General Public License for more details.                          *
14  *                                                                         *
15  *   You should have received a copy of the GNU General Public License     *
16  *   along with this program; if not, write to the                         *
17  *   Free Software Foundation, Inc.,                                       *
18  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA          *
19  ***************************************************************************/
20
21
22 #include "abstractservice.h"
23
24 #include <QObject>
25
26
27 AbstractService::AbstractService(QListWidget *listWidget, QObject * parent) :
28         QObject(parent),
29         hasPreview(false),
30         hasMetadata(false),
31         serviceType(NOSERVICE),
32         m_listWidget(listWidget)
33 {
34 }
35
36 AbstractService::~AbstractService()
37 {
38 }
39
40 void AbstractService::slotStartSearch(const QString , int )
41 {
42 }
43
44 OnlineItemInfo AbstractService::displayItemDetails(QListWidgetItem */*item*/)
45 {
46     OnlineItemInfo info;
47     return info;
48 }
49
50 bool AbstractService::startItemPreview(QListWidgetItem *)
51 {
52     return false;
53 }
54
55 void AbstractService::stopItemPreview(QListWidgetItem *)
56 {
57 }
58
59 QString AbstractService::getExtension(QListWidgetItem *)
60 {
61     return QString();
62 }
63
64
65 QString AbstractService::getDefaultDownloadName(QListWidgetItem *)
66 {
67     return QString();
68 }
69