Commit 27cc67da authored by Rohit Yadav's avatar Rohit Yadav Committed by Hugo Beauzée-Luyssen

Common header file for YouTube services

Signed-off-by: default avatarHugo Beauzée-Luyssen <beauze.h@gmail.com>
parent e233ebae
/*****************************************************************************
* YouTubeCommon.h: Generic Video Data Structs etc. for YouTube
*****************************************************************************
* 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 YOUTUBECOMMON_H
#define YOUTUBECOMMON_H
#include <QString>
/* VideoData structure used throught YouTube Service to pass video meta data */
struct VideoData
{
QString title;
QString category;
QString description;
QString keywords;
bool isPrivate;
};
/* Status codes for YouTubeService */
enum YouTubeServiceState
{
AuthStart = 0,
AuthFinish,
UploadStart,
UploadFinish,
SearchStart,
SearchFinish
};
/* Error Code References:
* Auth:
* http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html#Errors
*/
/* Error codes for YouTubeService */
enum YouTubeError
{
Ok = 0,
Abort, // Service was aborted
BadAuthentication, // Incorrect User credentials
CaptchaRequired, // If server is trying to challenge captcha
ServiceUnavailable, // YT Service Unavailable
UnknownError, // Unknown Error
NetworkError, // Some Network Error
ConnectionError, // Connection error
ContentError, // Remote Content error on server
SSLError, // SSL Error
ProxyError, // Proxy Error
ProxyAuthError, // Proxy Authentication Error
FileMissing, // File not file
XmlError // XML Parsing Error
};
#endif // YOUTUBECOMMON_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