2013-11-03 23:53:49 +13:00
|
|
|
|
#region License Information (GPL v3)
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
ShareX - A program that allows you to take screenshots and share any file type
|
2014-05-13 21:06:40 +12:00
|
|
|
|
Copyright (C) 2007-2014 ShareX Developers
|
2013-11-03 23:53:49 +13:00
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
Optionally you can also view the license at <http://www.gnu.org/licenses/>.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#endregion License Information (GPL v3)
|
|
|
|
|
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
|
2014-12-11 09:25:20 +13:00
|
|
|
|
namespace ShareX.UploadersLib
|
2013-11-03 23:53:49 +13:00
|
|
|
|
{
|
2014-10-19 06:38:34 +13:00
|
|
|
|
[Description("Image uploaders"), DefaultValue(Imgur)]
|
2013-11-03 23:53:49 +13:00
|
|
|
|
public enum ImageDestination
|
|
|
|
|
{
|
2014-07-11 13:52:53 +12:00
|
|
|
|
[Description("Imgur")]
|
2013-11-03 23:53:49 +13:00
|
|
|
|
Imgur,
|
2014-07-11 13:52:53 +12:00
|
|
|
|
[Description("ImageShack")]
|
2013-11-03 23:53:49 +13:00
|
|
|
|
ImageShack,
|
2014-07-11 13:52:53 +12:00
|
|
|
|
[Description("TinyPic")]
|
2013-11-03 23:53:49 +13:00
|
|
|
|
TinyPic,
|
2014-07-11 13:52:53 +12:00
|
|
|
|
[Description("Flickr")]
|
2013-11-03 23:53:49 +13:00
|
|
|
|
Flickr,
|
2014-07-11 13:52:53 +12:00
|
|
|
|
[Description("Photobucket")]
|
2013-11-03 23:53:49 +13:00
|
|
|
|
Photobucket,
|
2014-07-11 13:52:53 +12:00
|
|
|
|
[Description("Picasa")]
|
2013-11-03 23:53:49 +13:00
|
|
|
|
Picasa,
|
2014-07-11 13:52:53 +12:00
|
|
|
|
[Description("Twitter")]
|
2014-06-15 22:29:09 +12:00
|
|
|
|
Twitter,
|
2014-09-18 07:25:23 +12:00
|
|
|
|
[Description("Chevereto")]
|
|
|
|
|
Chevereto,
|
2014-10-01 02:32:39 +13:00
|
|
|
|
[Description("Hızlı Resim")]
|
|
|
|
|
HizliResim,
|
2014-10-19 06:38:34 +13:00
|
|
|
|
CustomImageUploader, // Localized
|
|
|
|
|
FileUploader // Localized
|
2013-11-03 23:53:49 +13:00
|
|
|
|
}
|
|
|
|
|
|
2014-10-19 06:38:34 +13:00
|
|
|
|
[Description("Text uploaders"), DefaultValue(Pastebin)]
|
2013-11-03 23:53:49 +13:00
|
|
|
|
public enum TextDestination
|
|
|
|
|
{
|
2014-07-11 13:52:53 +12:00
|
|
|
|
[Description("Pastebin")]
|
2013-11-03 23:53:49 +13:00
|
|
|
|
Pastebin,
|
2014-07-11 13:52:53 +12:00
|
|
|
|
[Description("Paste2")]
|
2013-11-03 23:53:49 +13:00
|
|
|
|
Paste2,
|
2014-07-11 13:52:53 +12:00
|
|
|
|
[Description("Slexy")]
|
2013-11-03 23:53:49 +13:00
|
|
|
|
Slexy,
|
2014-09-13 18:10:36 +12:00
|
|
|
|
[Description("Pastee.org")]
|
2013-11-03 23:53:49 +13:00
|
|
|
|
Pastee,
|
2014-07-11 13:52:53 +12:00
|
|
|
|
[Description("Paste.ee")]
|
2013-11-03 23:53:49 +13:00
|
|
|
|
Paste_ee,
|
2014-07-11 13:52:53 +12:00
|
|
|
|
[Description("GitHub Gist")]
|
2013-11-03 23:53:49 +13:00
|
|
|
|
Gist,
|
2014-07-11 13:52:53 +12:00
|
|
|
|
[Description("uPaste")]
|
2014-01-30 02:57:41 +13:00
|
|
|
|
Upaste,
|
2014-09-24 12:01:04 +12:00
|
|
|
|
[Description("Hastebin")]
|
|
|
|
|
Hastebin,
|
2014-10-19 06:38:34 +13:00
|
|
|
|
CustomTextUploader, // Localized
|
|
|
|
|
FileUploader // Localized
|
2013-11-03 23:53:49 +13:00
|
|
|
|
}
|
|
|
|
|
|
2014-10-19 06:38:34 +13:00
|
|
|
|
[Description("File uploaders"), DefaultValue(Dropbox)]
|
2013-11-03 23:53:49 +13:00
|
|
|
|
public enum FileDestination
|
|
|
|
|
{
|
2014-07-11 13:52:53 +12:00
|
|
|
|
[Description("Dropbox")]
|
2013-11-03 23:53:49 +13:00
|
|
|
|
Dropbox,
|
2014-07-14 08:10:37 +12:00
|
|
|
|
[Description("FTP")]
|
2013-11-03 23:53:49 +13:00
|
|
|
|
FTP,
|
2014-09-02 00:57:37 +12:00
|
|
|
|
//[Description("OneDrive")]
|
|
|
|
|
//OneDrive,
|
2014-07-11 13:52:53 +12:00
|
|
|
|
[Description("Copy")]
|
|
|
|
|
Copy,
|
|
|
|
|
[Description("Google Drive")]
|
|
|
|
|
GoogleDrive,
|
|
|
|
|
[Description("Box")]
|
|
|
|
|
Box,
|
|
|
|
|
[Description("MEGA")]
|
2014-02-06 15:48:04 +13:00
|
|
|
|
Mega,
|
2014-07-11 13:52:53 +12:00
|
|
|
|
[Description("Amazon S3")]
|
2014-03-27 21:17:28 +13:00
|
|
|
|
AmazonS3,
|
2014-07-11 13:52:53 +12:00
|
|
|
|
[Description("ownCloud")]
|
2014-07-07 02:56:43 +12:00
|
|
|
|
OwnCloud,
|
2014-07-23 13:38:46 +12:00
|
|
|
|
[Description("MediaFire")]
|
|
|
|
|
MediaFire,
|
2014-08-22 15:05:48 +12:00
|
|
|
|
[Description("Pomf")]
|
|
|
|
|
Pomf,
|
2014-07-11 13:52:53 +12:00
|
|
|
|
[Description("Gfycat")]
|
|
|
|
|
Gfycat,
|
|
|
|
|
[Description("Pushbullet")]
|
2014-03-30 22:16:20 +13:00
|
|
|
|
Pushbullet,
|
2014-07-11 13:52:53 +12:00
|
|
|
|
[Description("MediaCrush")]
|
2014-05-09 14:10:11 +12:00
|
|
|
|
MediaCrush,
|
2014-07-11 13:52:53 +12:00
|
|
|
|
[Description("RapidShare")]
|
2013-11-03 23:53:49 +13:00
|
|
|
|
RapidShare,
|
2014-07-11 13:52:53 +12:00
|
|
|
|
[Description("SendSpace")]
|
2013-11-03 23:53:49 +13:00
|
|
|
|
SendSpace,
|
2014-07-11 13:52:53 +12:00
|
|
|
|
[Description("Minus")]
|
2013-11-03 23:53:49 +13:00
|
|
|
|
Minus,
|
2014-07-11 13:52:53 +12:00
|
|
|
|
[Description("Ge.tt")]
|
2013-11-03 23:53:49 +13:00
|
|
|
|
Ge_tt,
|
2014-07-11 13:52:53 +12:00
|
|
|
|
[Description("Hostr")]
|
2013-11-03 23:53:49 +13:00
|
|
|
|
Localhostr,
|
2014-07-19 07:13:32 +12:00
|
|
|
|
[Description("JIRA")]
|
2014-07-11 13:52:53 +12:00
|
|
|
|
Jira,
|
2014-10-19 06:38:34 +13:00
|
|
|
|
SharedFolder, // Localized
|
|
|
|
|
Email, // Localized
|
|
|
|
|
CustomFileUploader // Localized
|
2013-11-03 23:53:49 +13:00
|
|
|
|
}
|
|
|
|
|
|
2014-10-19 06:38:34 +13:00
|
|
|
|
[Description("URL shorteners"), DefaultValue(BITLY)]
|
2013-11-03 23:53:49 +13:00
|
|
|
|
public enum UrlShortenerType
|
|
|
|
|
{
|
|
|
|
|
[Description("bit.ly")]
|
|
|
|
|
BITLY,
|
2014-02-06 15:48:04 +13:00
|
|
|
|
[Description("goo.gl")]
|
|
|
|
|
Google,
|
2013-11-03 23:53:49 +13:00
|
|
|
|
[Description("is.gd")]
|
|
|
|
|
ISGD,
|
|
|
|
|
[Description("tinyurl.com")]
|
|
|
|
|
TINYURL,
|
|
|
|
|
[Description("turl.ca")]
|
|
|
|
|
TURL,
|
2014-01-20 14:04:03 +13:00
|
|
|
|
[Description("yourls.org")]
|
|
|
|
|
YOURLS,
|
2014-07-07 09:30:47 +12:00
|
|
|
|
[Description("nl.cm")]
|
|
|
|
|
NLCM,
|
2014-07-13 23:10:42 +12:00
|
|
|
|
[Description("adf.ly")]
|
2014-07-14 07:56:31 +12:00
|
|
|
|
AdFly,
|
2014-10-19 06:38:34 +13:00
|
|
|
|
CustomURLShortener // Localized
|
2013-11-03 23:53:49 +13:00
|
|
|
|
}
|
|
|
|
|
|
2014-10-19 06:38:34 +13:00
|
|
|
|
[Description("URL sharing services"), DefaultValue(Twitter)]
|
2014-07-11 13:52:53 +12:00
|
|
|
|
public enum URLSharingServices
|
2013-11-03 23:53:49 +13:00
|
|
|
|
{
|
2014-10-19 06:38:34 +13:00
|
|
|
|
Email, // Localized
|
2014-07-07 12:50:05 +12:00
|
|
|
|
[Description("Twitter")]
|
2014-06-28 10:05:12 +12:00
|
|
|
|
Twitter,
|
2014-07-07 12:50:05 +12:00
|
|
|
|
[Description("Facebook")]
|
2014-06-28 19:36:28 +12:00
|
|
|
|
Facebook,
|
2014-07-07 12:50:05 +12:00
|
|
|
|
[Description("Google+")]
|
|
|
|
|
GooglePlus,
|
2014-07-07 13:44:54 +12:00
|
|
|
|
[Description("Reddit")]
|
|
|
|
|
Reddit,
|
2014-07-07 12:50:05 +12:00
|
|
|
|
[Description("Pinterest")]
|
2014-07-07 13:39:11 +12:00
|
|
|
|
Pinterest,
|
2014-07-12 12:40:38 +12:00
|
|
|
|
[Description("Tumblr")]
|
|
|
|
|
Tumblr,
|
2014-07-13 18:33:52 +12:00
|
|
|
|
[Description("LinkedIn")]
|
|
|
|
|
LinkedIn,
|
2014-07-15 12:59:47 +12:00
|
|
|
|
[Description("StumbleUpon")]
|
|
|
|
|
StumbleUpon,
|
2014-07-07 13:39:11 +12:00
|
|
|
|
[Description("Delicious")]
|
2014-07-15 12:59:47 +12:00
|
|
|
|
Delicious,
|
|
|
|
|
[Description("VK")]
|
2014-09-04 23:11:42 +12:00
|
|
|
|
VK,
|
|
|
|
|
[Description("Pushbullet")]
|
|
|
|
|
Pushbullet
|
2013-11-03 23:53:49 +13:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum HttpMethod
|
|
|
|
|
{
|
2014-04-17 05:55:07 +12:00
|
|
|
|
GET,
|
|
|
|
|
POST,
|
|
|
|
|
PUT,
|
2014-11-14 09:55:25 +13:00
|
|
|
|
PATCH,
|
2014-04-17 05:55:07 +12:00
|
|
|
|
DELETE
|
2013-11-03 23:53:49 +13:00
|
|
|
|
}
|
|
|
|
|
|
2014-10-19 06:38:34 +13:00
|
|
|
|
public enum ResponseType // Localized
|
2013-11-03 23:53:49 +13:00
|
|
|
|
{
|
|
|
|
|
Text,
|
2014-01-20 20:14:36 +13:00
|
|
|
|
RedirectionURL,
|
|
|
|
|
Headers
|
2013-11-03 23:53:49 +13:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum FTPProtocol
|
|
|
|
|
{
|
|
|
|
|
[Description("FTP")]
|
|
|
|
|
FTP,
|
|
|
|
|
[Description("FTPS (FTP over SSL)")]
|
|
|
|
|
FTPS,
|
|
|
|
|
[Description("SFTP (SSH FTP)")]
|
|
|
|
|
SFTP
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum BrowserProtocol
|
|
|
|
|
{
|
|
|
|
|
[Description("http://")]
|
2014-05-31 03:24:43 +12:00
|
|
|
|
http,
|
2013-11-03 23:53:49 +13:00
|
|
|
|
[Description("https://")]
|
2014-05-31 03:24:43 +12:00
|
|
|
|
https,
|
2013-11-03 23:53:49 +13:00
|
|
|
|
[Description("ftp://")]
|
2014-05-31 03:24:43 +12:00
|
|
|
|
ftp,
|
2013-11-03 23:53:49 +13:00
|
|
|
|
[Description("ftps://")]
|
2014-05-31 03:24:43 +12:00
|
|
|
|
ftps,
|
2013-11-03 23:53:49 +13:00
|
|
|
|
[Description("file://")]
|
2014-05-31 03:24:43 +12:00
|
|
|
|
file
|
2013-11-03 23:53:49 +13:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum ServerProtocol
|
|
|
|
|
{
|
|
|
|
|
[Description("ftp://")]
|
2014-05-31 03:24:43 +12:00
|
|
|
|
ftp,
|
2013-11-03 23:53:49 +13:00
|
|
|
|
[Description("ftps://")]
|
2014-05-31 03:24:43 +12:00
|
|
|
|
ftps
|
2013-11-03 23:53:49 +13:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum Privacy
|
|
|
|
|
{
|
|
|
|
|
Public,
|
|
|
|
|
Private
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum AccountType
|
|
|
|
|
{
|
|
|
|
|
[Description("Anonymous")]
|
|
|
|
|
Anonymous,
|
|
|
|
|
[Description("User")]
|
|
|
|
|
User
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum LinkFormatEnum
|
|
|
|
|
{
|
|
|
|
|
[Description("Full URL")]
|
|
|
|
|
URL,
|
|
|
|
|
[Description("Full Image for Forums")]
|
|
|
|
|
ForumImage,
|
|
|
|
|
[Description("Full Image as HTML")]
|
|
|
|
|
HTMLImage,
|
|
|
|
|
[Description("Full Image for Wiki")]
|
|
|
|
|
WikiImage,
|
|
|
|
|
[Description("Shortened URL")]
|
|
|
|
|
ShortenedURL,
|
|
|
|
|
[Description("Linked Thumbnail for Forums")]
|
|
|
|
|
ForumLinkedImage,
|
|
|
|
|
[Description("Linked Thumbnail as HTML")]
|
|
|
|
|
HTMLLinkedImage,
|
|
|
|
|
[Description("Linked Thumbnail for Wiki")]
|
|
|
|
|
WikiLinkedImage,
|
|
|
|
|
[Description("Thumbnail")]
|
|
|
|
|
ThumbnailURL,
|
|
|
|
|
[Description("Local File path")]
|
|
|
|
|
LocalFilePath,
|
|
|
|
|
[Description("Local File path as URI")]
|
|
|
|
|
LocalFilePathUri
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum CustomUploaderType
|
|
|
|
|
{
|
|
|
|
|
Image,
|
|
|
|
|
Text,
|
|
|
|
|
File,
|
|
|
|
|
URL
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum CustomUploaderRequestType
|
|
|
|
|
{
|
|
|
|
|
POST,
|
2014-11-14 09:55:25 +13:00
|
|
|
|
GET,
|
|
|
|
|
PUT,
|
|
|
|
|
PATCH,
|
|
|
|
|
DELETE
|
2013-11-03 23:53:49 +13:00
|
|
|
|
}
|
|
|
|
|
|
2014-05-25 10:24:51 +12:00
|
|
|
|
public enum FTPSEncryption
|
2013-11-03 23:53:49 +13:00
|
|
|
|
{
|
2014-05-25 10:24:51 +12:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Connection starts in plain text and encryption is enabled with the AUTH command immediately after the server greeting.
|
|
|
|
|
/// </summary>
|
|
|
|
|
Explicit,
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Encryption is used from the start of the connection, port 990
|
|
|
|
|
/// </summary>
|
|
|
|
|
Implicit
|
2013-11-03 23:53:49 +13:00
|
|
|
|
}
|
2014-06-17 00:20:06 +12:00
|
|
|
|
|
|
|
|
|
public enum OAuthLoginStatus
|
|
|
|
|
{
|
|
|
|
|
LoginRequired,
|
|
|
|
|
LoginSuccessful,
|
|
|
|
|
LoginFailed
|
|
|
|
|
}
|
2013-11-03 23:53:49 +13:00
|
|
|
|
}
|