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-01-12 20:25:51 +13:00
|
|
|
|
Copyright (C) 2008-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;
|
|
|
|
|
|
|
|
|
|
namespace UploadersLib
|
|
|
|
|
{
|
2014-02-06 15:48:04 +13:00
|
|
|
|
[Description("Image uploaders"), DefaultValue(ImageDestination.Imgur)]
|
2013-11-03 23:53:49 +13:00
|
|
|
|
public enum ImageDestination
|
|
|
|
|
{
|
|
|
|
|
[Description("imgur.com")]
|
|
|
|
|
Imgur,
|
2014-01-13 00:54:30 +13:00
|
|
|
|
[Description("imageshack.com")]
|
2013-11-03 23:53:49 +13:00
|
|
|
|
ImageShack,
|
|
|
|
|
[Description("tinypic.com")]
|
|
|
|
|
TinyPic,
|
|
|
|
|
[Description("flickr.com")]
|
|
|
|
|
Flickr,
|
|
|
|
|
[Description("photobucket.com")]
|
|
|
|
|
Photobucket,
|
|
|
|
|
[Description("picasaweb.google.com")]
|
|
|
|
|
Picasa,
|
|
|
|
|
[Description("twitpic.com")]
|
|
|
|
|
Twitpic,
|
|
|
|
|
[Description("twitsnaps.com")]
|
|
|
|
|
Twitsnaps,
|
|
|
|
|
[Description("yfrog.com")]
|
|
|
|
|
yFrog,
|
2014-01-05 12:21:44 +13:00
|
|
|
|
[Description("mediacru.sh")]
|
2014-01-05 07:12:52 +13:00
|
|
|
|
MediaCrush,
|
2013-11-14 13:03:48 +13:00
|
|
|
|
[Description("Custom image uploader")]
|
2013-11-03 23:53:49 +13:00
|
|
|
|
CustomImageUploader,
|
2013-11-14 13:03:48 +13:00
|
|
|
|
[Description("File uploader")]
|
2013-11-03 23:53:49 +13:00
|
|
|
|
FileUploader
|
|
|
|
|
}
|
|
|
|
|
|
2014-02-06 15:48:04 +13:00
|
|
|
|
[Description("Text uploaders"), DefaultValue(TextDestination.Pastebin)]
|
2013-11-03 23:53:49 +13:00
|
|
|
|
public enum TextDestination
|
|
|
|
|
{
|
|
|
|
|
[Description("pastebin.com")]
|
|
|
|
|
Pastebin,
|
|
|
|
|
[Description("pastebin.ca")]
|
|
|
|
|
PastebinCA,
|
|
|
|
|
[Description("paste2.org")]
|
|
|
|
|
Paste2,
|
|
|
|
|
[Description("slexy.org")]
|
|
|
|
|
Slexy,
|
|
|
|
|
[Description("pastee.org")]
|
|
|
|
|
Pastee,
|
|
|
|
|
[Description("paste.ee")]
|
|
|
|
|
Paste_ee,
|
|
|
|
|
[Description("gist.github.com")]
|
|
|
|
|
Gist,
|
2014-01-30 02:57:41 +13:00
|
|
|
|
[Description("upaste.me")]
|
|
|
|
|
Upaste,
|
2013-11-14 13:03:48 +13:00
|
|
|
|
[Description("Custom text uploader")]
|
2013-11-03 23:53:49 +13:00
|
|
|
|
CustomTextUploader,
|
2013-11-14 13:03:48 +13:00
|
|
|
|
[Description("File uploader")]
|
2013-11-03 23:53:49 +13:00
|
|
|
|
FileUploader
|
|
|
|
|
}
|
|
|
|
|
|
2014-02-06 15:48:04 +13:00
|
|
|
|
[Description("File uploaders"), DefaultValue(FileDestination.Dropbox)]
|
2013-11-03 23:53:49 +13:00
|
|
|
|
public enum FileDestination
|
|
|
|
|
{
|
|
|
|
|
[Description("dropbox.com")]
|
|
|
|
|
Dropbox,
|
|
|
|
|
[Description("FTP Server")]
|
|
|
|
|
FTP,
|
2014-02-06 15:48:04 +13:00
|
|
|
|
[Description("mega.co.nz")]
|
|
|
|
|
Mega,
|
2014-03-28 22:12:07 +13:00
|
|
|
|
[Description("s3.amazon.com")]
|
2014-03-27 21:17:28 +13:00
|
|
|
|
AmazonS3,
|
2014-03-30 22:16:20 +13:00
|
|
|
|
[Description("pushbullet.com")]
|
|
|
|
|
Pushbullet,
|
2013-11-03 23:53:49 +13:00
|
|
|
|
[Description("drive.google.com")]
|
|
|
|
|
GoogleDrive,
|
|
|
|
|
[Description("rapidshare.com")]
|
|
|
|
|
RapidShare,
|
|
|
|
|
[Description("sendspace.com")]
|
|
|
|
|
SendSpace,
|
|
|
|
|
[Description("minus.com")]
|
|
|
|
|
Minus,
|
|
|
|
|
[Description("box.com")]
|
|
|
|
|
Box,
|
|
|
|
|
[Description("ge.tt")]
|
|
|
|
|
Ge_tt,
|
|
|
|
|
[Description("hostr.co")]
|
|
|
|
|
Localhostr,
|
2013-11-14 13:03:48 +13:00
|
|
|
|
[Description("Shared folder")]
|
2013-11-03 23:53:49 +13:00
|
|
|
|
SharedFolder,
|
|
|
|
|
[Description("Email")]
|
|
|
|
|
Email,
|
|
|
|
|
[Description("Jira")]
|
|
|
|
|
Jira,
|
2013-11-14 13:03:48 +13:00
|
|
|
|
[Description("Custom file uploader")]
|
2013-11-03 23:53:49 +13:00
|
|
|
|
CustomFileUploader
|
|
|
|
|
}
|
|
|
|
|
|
2014-02-06 15:48:04 +13:00
|
|
|
|
[Description("URL shorteners"), DefaultValue(UrlShortenerType.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,
|
2013-11-14 13:03:48 +13:00
|
|
|
|
[Description("Custom URL shortener")]
|
2013-11-03 23:53:49 +13:00
|
|
|
|
CustomURLShortener
|
|
|
|
|
}
|
|
|
|
|
|
2014-02-06 15:48:04 +13:00
|
|
|
|
[Description("Social networking services"), DefaultValue(SocialNetworkingService.Twitter)]
|
2013-11-03 23:53:49 +13:00
|
|
|
|
public enum SocialNetworkingService
|
|
|
|
|
{
|
|
|
|
|
[Description("twitter.com")]
|
|
|
|
|
Twitter
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum HttpMethod
|
|
|
|
|
{
|
|
|
|
|
[Description("GET")]
|
|
|
|
|
Get,
|
|
|
|
|
[Description("POST")]
|
|
|
|
|
Post,
|
|
|
|
|
[Description("DELETE")]
|
|
|
|
|
Delete
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum ResponseType
|
|
|
|
|
{
|
|
|
|
|
[Description("Response text")]
|
|
|
|
|
Text,
|
|
|
|
|
[Description("Redirection URL")]
|
2014-01-20 20:14:36 +13:00
|
|
|
|
RedirectionURL,
|
|
|
|
|
[Description("Response headers")]
|
|
|
|
|
Headers
|
2013-11-03 23:53:49 +13:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum ProxyMethod
|
|
|
|
|
{
|
|
|
|
|
None,
|
|
|
|
|
Manual,
|
|
|
|
|
Automatic
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum ProxyType
|
|
|
|
|
{
|
2013-12-05 01:55:58 +13:00
|
|
|
|
[Description("HTTP proxy")]
|
2013-11-03 23:53:49 +13:00
|
|
|
|
HTTP,
|
2013-12-05 01:55:58 +13:00
|
|
|
|
[Description("SOCKS v4 proxy")]
|
2013-11-03 23:53:49 +13:00
|
|
|
|
SOCKS4,
|
2013-12-05 01:55:58 +13:00
|
|
|
|
[Description("SOCKS v4a proxy")]
|
2013-11-03 23:53:49 +13:00
|
|
|
|
SOCKS4a,
|
2013-12-05 01:55:58 +13:00
|
|
|
|
[Description("SOCKS v5 proxy")]
|
2013-11-03 23:53:49 +13:00
|
|
|
|
SOCKS5
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum FTPProtocol
|
|
|
|
|
{
|
|
|
|
|
[Description("FTP")]
|
|
|
|
|
FTP,
|
|
|
|
|
[Description("FTPS (FTP over SSL)")]
|
|
|
|
|
FTPS,
|
|
|
|
|
[Description("SFTP (SSH FTP)")]
|
|
|
|
|
SFTP
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum BrowserProtocol
|
|
|
|
|
{
|
|
|
|
|
[Description("http://")]
|
|
|
|
|
Http,
|
|
|
|
|
[Description("https://")]
|
|
|
|
|
Https,
|
|
|
|
|
[Description("ftp://")]
|
|
|
|
|
Ftp,
|
|
|
|
|
[Description("ftps://")]
|
|
|
|
|
Ftps,
|
|
|
|
|
[Description("file://")]
|
|
|
|
|
File
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum ServerProtocol
|
|
|
|
|
{
|
|
|
|
|
[Description("ftp://")]
|
|
|
|
|
Ftp,
|
|
|
|
|
[Description("ftps://")]
|
|
|
|
|
Ftps
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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,
|
|
|
|
|
GET
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum FtpSecurityProtocol
|
|
|
|
|
{
|
|
|
|
|
None = 0,
|
|
|
|
|
Tls1Explicit = 1,
|
|
|
|
|
Tls1OrSsl3Explicit = 2,
|
|
|
|
|
Ssl3Explicit = 3,
|
|
|
|
|
Ssl2Explicit = 4,
|
|
|
|
|
Tls1Implicit = 5,
|
|
|
|
|
Tls1OrSsl3Implicit = 6,
|
|
|
|
|
Ssl3Implicit = 7,
|
|
|
|
|
Ssl2Implicit = 8,
|
|
|
|
|
}
|
|
|
|
|
}
|