Commit 49f10c2a authored by Rohit Yadav's avatar Rohit Yadav Committed by Hugo Beauzée-Luyssen

Abstract Service class for sharing videos on the internet. Currently only for YouTube.

Signed-off-by: default avatarHugo Beauzée-Luyssen <beauze.h@gmail.com>
parent b01f1f35
/******************************************************************************
* AbstractSharingService.h: Abstract Video Sharing Service Class
******************************************************************************
* Copyright (C) 2010 VideoLAN
*
* Authors: Rohit Yadav <rohityadav89 AT gmail.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifndef ABSTRACTSHARINGSERVICE_H
#define ABSTRACTSHARINGSERVICE_H
#include <QObject>
class VideoData;
class AbstractSharingService : public QObject
{
Q_OBJECT
public:
virtual void authenticate() = 0; // Authenticate the service
virtual bool upload() = 0; // Upload video
virtual const VideoData& getVideoData() = 0;
virtual void setCredentials( const QString&, const QString& ) = 0;
virtual void setDeveloperKey( const QString& ) = 0;
virtual void setVideoParameters( const QString&, const VideoData& ) = 0;
signals:
void authOver();
void uploadOver( QString );
void uploadProgress( qint64, qint64 );
void error( QString );
};
#endif // ABSTRACTSHARINGSERVICE_H
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment