ShareX/ShareX.UploadersLib/Enums.cs

350 lines
8.8 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
2024-01-03 12:57:14 +13:00
Copyright (c) 2007-2024 ShareX Team
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;
2013-11-03 23:53:49 +13:00
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
{
[Description("Imgur")]
2013-11-03 23:53:49 +13:00
Imgur,
[Description("ImageShack")]
2013-11-03 23:53:49 +13:00
ImageShack,
[Description("Flickr")]
2013-11-03 23:53:49 +13:00
Flickr,
[Description("Photobucket")]
2013-11-03 23:53:49 +13:00
Photobucket,
[Description("Google Photos")]
2013-11-03 23:53:49 +13:00
Picasa,
2024-01-20 02:57:07 +13:00
[Description("X")]
2014-06-15 22:29:09 +12:00
Twitter,
2014-09-18 07:25:23 +12:00
[Description("Chevereto")]
Chevereto,
[Description("vgy.me")]
Vgyme,
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
{
[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("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,
2015-08-04 00:59:33 +12:00
[Description("OneTimeSecret")]
OneTimeSecret,
[Description("Pastie")]
Pastie,
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
{
[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-12-26 09:01:22 +13:00
[Description("OneDrive")]
OneDrive,
[Description("Google Drive")]
GoogleDrive,
2016-06-12 06:54:14 +12:00
[Description("puush")]
Puush,
[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,
2018-04-20 09:30:56 +12:00
[Description("Google Cloud Storage")]
GoogleCloudStorage,
2018-04-20 09:48:59 +12:00
[Description("Azure Storage")]
AzureStorage,
[Description("Backblaze B2")]
BackblazeB2,
[Description("ownCloud / Nextcloud")]
2014-07-07 02:56:43 +12:00
OwnCloud,
[Description("MediaFire")]
MediaFire,
[Description("Pushbullet")]
Pushbullet,
[Description("SendSpace")]
2013-11-03 23:53:49 +13:00
SendSpace,
[Description("Hostr")]
2013-11-03 23:53:49 +13:00
Localhostr,
[Description("JIRA")]
Jira,
2015-02-04 09:48:32 +13:00
[Description("Lambda")]
2015-02-04 09:12:53 +13:00
Lambda,
[Description("Pomf")]
Pomf,
2015-11-19 02:07:56 +13:00
[Description("Uguu")]
Uguu,
[Description("Seafile")]
Seafile,
2015-12-02 07:02:06 +13:00
[Description("Streamable")]
Streamable,
2016-05-16 00:22:13 +12:00
[Description("s-ul")]
Sul,
[Description("LobFile")]
2016-05-16 00:22:13 +12:00
Lithiio,
[Description("transfer.sh")]
Transfersh,
2017-02-27 05:17:02 +13:00
[Description("Plik")]
Plik,
2018-04-10 12:49:40 +12:00
[Description("YouTube")]
YouTube,
2021-04-22 01:45:19 +12:00
[Description("Vault.ooo")]
2021-04-02 08:29:24 +13:00
Vault_ooo,
2014-10-19 06:38:34 +13:00
SharedFolder, // Localized
Email, // Localized
2015-06-05 19:48:02 +12:00
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,
[Description("is.gd")]
ISGD,
[Description("v.gd")]
VGD,
2013-11-03 23:53:49 +13:00
[Description("tinyurl.com")]
TINYURL,
[Description("turl.ca")]
TURL,
[Description("yourls.org")]
YOURLS,
2014-07-13 23:10:42 +12:00
[Description("adf.ly")]
AdFly,
2015-07-21 09:52:51 +12:00
[Description("qr.net")]
QRnet,
2015-07-21 10:48:17 +12:00
[Description("vurl.com")]
VURL,
2015-07-21 11:25:45 +12:00
[Description("2.gp")]
TwoGP,
2015-08-05 06:49:07 +12:00
[Description("Polr")]
Polr,
[Description("Firebase Dynamic Links")]
FirebaseDynamicLinks,
2018-10-02 12:11:53 +13:00
[Description("Kutt")]
Kutt,
2019-07-16 10:00:27 +12:00
[Description("Zero Width Shortener")]
ZeroWidthShortener,
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)]
public enum URLSharingServices
2013-11-03 23:53:49 +13:00
{
2014-10-19 06:38:34 +13:00
Email, // Localized
2024-01-20 02:57:07 +13:00
[Description("X")]
Twitter,
2014-07-07 12:50:05 +12:00
[Description("Facebook")]
Facebook,
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,
2017-09-10 22:55:21 +12:00
GoogleImageSearch, // Localized
2021-07-31 19:42:12 +12:00
BingVisualSearch, // Localized
2017-09-11 00:54:46 +12:00
CustomURLSharingService // Localized
2013-11-03 23:53:49 +13:00
}
public enum HttpMethod
{
GET,
POST,
PUT,
PATCH,
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,
RedirectionURL,
2015-10-13 22:26:16 +13:00
Headers,
LocationHeader
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 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
}
2019-01-09 04:02:21 +13:00
public enum CustomUploaderBody
{
[Description("No body")]
None,
[Description("Form data (multipart/form-data)")]
MultipartFormData,
[Description("Form URL encoded (application/x-www-form-urlencoded)")]
FormURLEncoded,
[Description("JSON (application/json)")]
JSON,
[Description("XML (application/xml)")]
XML,
[Description("Binary")]
Binary
}
[Flags]
public enum CustomUploaderDestinationType
{
[Description("None")]
None = 0,
ImageUploader = 1, // Localized
TextUploader = 1 << 1, // Localized
FileUploader = 1 << 2, // Localized
2017-09-10 22:55:21 +12:00
URLShortener = 1 << 3, // Localized
2017-09-11 00:54:46 +12:00
URLSharingService = 1 << 4 // Localized
}
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
}
2018-04-12 22:09:35 +12:00
public enum YouTubeVideoPrivacy // Localized
{
Public,
Unlisted,
Private
}
public enum BoxShareAccessLevel
{
[Description("Public - People with the link")]
Open,
[Description("Company - People in your company")]
Company,
[Description("Collaborators - Invited people only")]
Collaborators
}
2015-12-04 11:42:27 +13:00
}