ShareX/UploadersLib/Enums.cs

307 lines
7.5 KiB
C#
Raw Normal View History

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;
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")]
2013-11-03 23:53:49 +13:00
Imgur,
[Description("ImageShack")]
2013-11-03 23:53:49 +13:00
ImageShack,
[Description("TinyPic")]
2013-11-03 23:53:49 +13:00
TinyPic,
[Description("Flickr")]
2013-11-03 23:53:49 +13:00
Flickr,
[Description("Photobucket")]
2013-11-03 23:53:49 +13:00
Photobucket,
[Description("Picasa")]
2013-11-03 23:53:49 +13:00
Picasa,
[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,
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")]
2013-11-03 23:53:49 +13:00
Pastebin,
[Description("Paste2")]
2013-11-03 23:53:49 +13:00
Paste2,
[Description("Slexy")]
2013-11-03 23:53:49 +13:00
Slexy,
[Description("Pastee.org")]
2013-11-03 23:53:49 +13:00
Pastee,
[Description("Paste.ee")]
2013-11-03 23:53:49 +13:00
Paste_ee,
[Description("GitHub Gist")]
2013-11-03 23:53:49 +13:00
Gist,
[Description("uPaste")]
2014-01-30 02:57:41 +13:00
Upaste,
2014-09-24 12:01:04 +12:00
[Description("Hastebin")]
Hastebin,
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")]
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,
//[Description("OneDrive")]
//OneDrive,
[Description("Copy")]
Copy,
[Description("Google Drive")]
GoogleDrive,
[Description("Box")]
Box,
[Description("MEGA")]
2014-02-06 15:48:04 +13:00
Mega,
[Description("Amazon S3")]
2014-03-27 21:17:28 +13:00
AmazonS3,
[Description("ownCloud")]
2014-07-07 02:56:43 +12:00
OwnCloud,
[Description("MediaFire")]
MediaFire,
2014-08-22 15:05:48 +12:00
[Description("Pomf")]
Pomf,
[Description("Gfycat")]
Gfycat,
[Description("Pushbullet")]
Pushbullet,
[Description("MediaCrush")]
2014-05-09 14:10:11 +12:00
MediaCrush,
[Description("RapidShare")]
2013-11-03 23:53:49 +13:00
RapidShare,
[Description("SendSpace")]
2013-11-03 23:53:49 +13:00
SendSpace,
[Description("Minus")]
2013-11-03 23:53:49 +13:00
Minus,
[Description("Ge.tt")]
2013-11-03 23:53:49 +13:00
Ge_tt,
[Description("Hostr")]
2013-11-03 23:53:49 +13:00
Localhostr,
[Description("JIRA")]
Jira,
2013-11-14 13:03:48 +13:00
[Description("Shared folder")]
2013-11-03 23:53:49 +13:00
SharedFolder,
[Description("Email")]
Email,
2013-11-14 13:03:48 +13:00
[Description("Custom file uploader")]
CustomFileUploader
2013-11-03 23:53:49 +13:00
}
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,
[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")]
AdFly,
2013-11-14 13:03:48 +13:00
[Description("Custom URL shortener")]
2013-11-03 23:53:49 +13:00
CustomURLShortener
}
[Description("URL sharing services"), DefaultValue(URLSharingServices.Twitter)]
public enum URLSharingServices
2013-11-03 23:53:49 +13:00
{
[Description("Email")]
Email,
2014-07-07 12:50:05 +12:00
[Description("Twitter")]
Twitter,
2014-07-07 12:50:05 +12:00
[Description("Facebook")]
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,
[Description("Tumblr")]
Tumblr,
[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")]
VK,
[Description("Pushbullet")]
Pushbullet
2013-11-03 23:53:49 +13:00
}
public enum HttpMethod
{
GET,
POST,
PUT,
DELETE
2013-11-03 23:53:49 +13:00
}
public enum ResponseType
{
[Description("Response text")]
Text,
[Description("Redirection URL")]
RedirectionURL,
[Description("Response headers")]
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,
GET
}
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
}
public enum OAuthLoginStatus
{
LoginRequired,
LoginSuccessful,
LoginFailed
}
2013-11-03 23:53:49 +13:00
}