]> git.sesse.net Git - kdenlive/blob - src/utils/abstractservice.cpp
Const'ref
[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         inlineDownload(false),
32         serviceType(NOSERVICE),
33         m_listWidget(listWidget)
34 {
35 }
36
37 AbstractService::~AbstractService()
38 {
39 }
40
41 void AbstractService::slotStartSearch(const QString & , int )
42 {
43 }
44
45 OnlineItemInfo AbstractService::displayItemDetails(QListWidgetItem */*item*/)
46 {
47     OnlineItemInfo info;
48     return info;
49 }
50
51 bool AbstractService::startItemPreview(QListWidgetItem *)
52 {
53     return false;
54 }
55
56 void AbstractService::stopItemPreview(QListWidgetItem *)
57 {
58 }
59
60 QString AbstractService::getExtension(QListWidgetItem *)
61 {
62     return QString();
63 }
64
65
66 QString AbstractService::getDefaultDownloadName(QListWidgetItem *)
67 {
68     return QString();
69 }
70
71
72 #include "abstractservice.moc"