ShareX/UploadersLib/Enums.cs

277 lines
6.9 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.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,
2014-06-15 22:29:09 +12:00
[Description("twitter.com")]
Twitter,
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,
2014-06-06 06:19:45 +12:00
[Description("copy.com")]
Copy,
2013-11-03 23:53:49 +13:00
[Description("FTP Server")]
FTP,
[Description("gfycat.com")]
Gfycat,
2014-02-06 15:48:04 +13:00
[Description("mega.co.nz")]
Mega,
[Description("s3.amazon.com")]
2014-03-27 21:17:28 +13:00
AmazonS3,
2014-07-07 02:56:43 +12:00
[Description("owncloud.org")]
OwnCloud,
[Description("pushbullet.com")]
Pushbullet,
2014-05-09 14:10:11 +12:00
[Description("mediacru.sh")]
MediaCrush,
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,
[Description("yourls.org")]
YOURLS,
2014-07-07 09:30:47 +12:00
[Description("nl.cm")]
NLCM,
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,
[Description("facebook.com")]
Facebook,
[Description("plus.google.com")]
GooglePlus
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
}