ShareX/ShareX.UploadersLib/UploadersConfig.cs

351 lines
10 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
2016-01-04 04:16:01 +13:00
Copyright (c) 2007-2016 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 CG.Web.MegaApiClient;
2014-12-11 09:25:20 +13:00
using ShareX.HelpersLib;
using ShareX.UploadersLib.FileUploaders;
using ShareX.UploadersLib.ImageUploaders;
using ShareX.UploadersLib.TextUploaders;
2016-02-15 19:53:30 +13:00
using System;
using System.Collections.Generic;
2013-11-03 23:53:49 +13:00
2014-12-11 09:25:20 +13:00
namespace ShareX.UploadersLib
2013-11-03 23:53:49 +13:00
{
public class UploadersConfig : SettingsBase<UploadersConfig>
{
#region Image uploaders
// Imgur
public AccountType ImgurAccountType = AccountType.Anonymous;
2014-07-22 12:12:07 +12:00
public bool ImgurDirectLink = true;
public ImgurThumbnailType ImgurThumbnailType = ImgurThumbnailType.Large_Thumbnail;
2015-08-08 23:38:37 +12:00
public bool ImgurUseGIFV = true;
public OAuth2Info ImgurOAuth2Info = null;
2014-09-07 13:11:55 +12:00
public bool ImgurUploadSelectedAlbum = false;
public ImgurAlbumData ImgurSelectedAlbum = null;
public List<ImgurAlbumData> ImgurAlbumList = null;
2013-11-03 23:53:49 +13:00
// ImageShack
2014-02-01 11:11:25 +13:00
2014-01-12 23:44:06 +13:00
public ImageShackOptions ImageShackSettings = new ImageShackOptions();
2013-11-03 23:53:49 +13:00
// TinyPic
public AccountType TinyPicAccountType = AccountType.Anonymous;
2016-05-25 06:15:45 +12:00
public string TinyPicRegistrationCode = "";
public string TinyPicUsername = "";
public string TinyPicPassword = "";
2013-11-03 23:53:49 +13:00
public bool TinyPicRememberUserPass = false;
// Flickr
public FlickrAuthInfo FlickrAuthInfo = new FlickrAuthInfo();
public FlickrSettings FlickrSettings = new FlickrSettings();
// Photobucket
public OAuthInfo PhotobucketOAuthInfo = null;
public PhotobucketAccountInfo PhotobucketAccountInfo = null;
// Picasa
public OAuth2Info PicasaOAuth2Info = null;
2016-05-25 06:15:45 +12:00
public string PicasaAlbumID = "";
2013-11-03 23:53:49 +13:00
2014-09-18 07:25:23 +12:00
// Chevereto
public CheveretoUploader CheveretoUploader = new CheveretoUploader("http://ultraimg.com/api/1/upload", "3374fa58c672fcaad8dab979f7687397");
2014-09-18 07:33:11 +12:00
public bool CheveretoDirectURL = true;
2014-09-18 07:25:23 +12:00
// SomeImage
2016-05-25 06:15:45 +12:00
public string SomeImageAPIKey = "";
2016-02-15 01:12:53 +13:00
public bool SomeImageDirectURL = true;
2016-02-14 13:28:41 +13:00
// vgy.me
2016-05-25 06:15:45 +12:00
public string VgymeUserKey = "";
2016-02-14 13:28:41 +13:00
2013-11-03 23:53:49 +13:00
#endregion Image uploaders
#region Text uploaders
// Pastebin
public PastebinSettings PastebinSettings = new PastebinSettings();
// Paste.ee
public string Paste_eeUserAPIKey = "public";
// Gist
public bool GistAnonymousLogin = true;
public OAuth2Info GistOAuth2Info = null;
public bool GistPublishPublic = false;
public bool GistRawURL = false;
2014-02-01 10:17:39 +13:00
// uPaste
2016-05-25 06:15:45 +12:00
public string UpasteUserKey = "";
2014-02-01 11:11:25 +13:00
public bool UpasteIsPublic = false;
2014-02-01 10:17:39 +13:00
2014-09-26 17:18:44 +12:00
// Hastebin
public string HastebinCustomDomain = "http://hastebin.com";
public string HastebinSyntaxHighlighting = "hs";
public bool HastebinUseFileExtension = true;
2014-09-26 17:18:44 +12:00
2015-08-04 00:59:33 +12:00
// OneTimeSecret
2016-05-25 06:15:45 +12:00
public string OneTimeSecretAPIKey = "";
public string OneTimeSecretAPIUsername = "";
2015-08-04 00:59:33 +12:00
2013-11-03 23:53:49 +13:00
#endregion Text uploaders
#region File uploaders
// Dropbox
public OAuth2Info DropboxOAuth2Info = null;
//public DropboxAccount DropboxAccount = null;
2014-04-16 07:30:46 +12:00
public string DropboxUploadPath = "Public/ShareX/%y/%mo";
2013-11-03 23:53:49 +13:00
public bool DropboxAutoCreateShareableLink = false;
public DropboxURLType DropboxURLType = DropboxURLType.Default;
public DropboxAccountInfo DropboxAccountInfo = null; // API v1
2013-11-03 23:53:49 +13:00
2016-06-12 06:54:14 +12:00
// FTP Server
public List<FTPAccount> FTPAccountList = new List<FTPAccount>();
public int FTPSelectedImage = 0;
public int FTPSelectedText = 0;
public int FTPSelectedFile = 0;
2014-07-16 00:17:02 +12:00
// OneDrive
public OAuth2Info OneDriveOAuth2Info = null;
public OneDriveFileInfo OneDriveSelectedFolder = OneDrive.RootFolder;
public bool OneDriveAutoCreateShareableLink = true;
2014-07-16 00:17:02 +12:00
2013-11-03 23:53:49 +13:00
// Google Drive
public OAuth2Info GoogleDriveOAuth2Info = null;
public bool GoogleDriveIsPublic = true;
public bool GoogleDriveDirectLink = false;
public bool GoogleDriveUseFolder = false;
2016-05-25 06:15:45 +12:00
public string GoogleDriveFolderID = "";
2013-11-03 23:53:49 +13:00
2016-06-12 06:54:14 +12:00
// puush
public string PuushAPIKey = "";
2013-11-03 23:53:49 +13:00
// SendSpace
public AccountType SendSpaceAccountType = AccountType.Anonymous;
2016-05-25 06:15:45 +12:00
public string SendSpaceUsername = "";
public string SendSpacePassword = "";
2013-11-03 23:53:49 +13:00
// Minus
2014-03-21 12:37:43 +13:00
public OAuth2Info MinusOAuth2Info = null;
2013-11-03 23:53:49 +13:00
public MinusOptions MinusConfig = new MinusOptions();
// Box
2014-04-17 04:18:25 +12:00
public OAuth2Info BoxOAuth2Info = null;
2014-04-17 11:34:31 +12:00
public BoxFileEntry BoxSelectedFolder = Box.RootFolder;
2013-11-03 23:53:49 +13:00
public bool BoxShare = true;
// Ge.tt
public Ge_ttLogin Ge_ttLogin = null;
// Localhostr
2016-05-25 06:15:45 +12:00
public string LocalhostrEmail = "";
public string LocalhostrPassword = "";
2013-11-03 23:53:49 +13:00
public bool LocalhostrDirectURL = true;
// Shared Folder
public List<LocalhostAccount> LocalhostAccountList = new List<LocalhostAccount>();
public int LocalhostSelectedImages = 0;
public int LocalhostSelectedText = 0;
public int LocalhostSelectedFiles = 0;
// Email
public string EmailSmtpServer = "smtp.gmail.com";
public int EmailSmtpPort = 587;
public string EmailFrom = "...@gmail.com";
2016-05-25 06:15:45 +12:00
public string EmailPassword = "";
2013-11-03 23:53:49 +13:00
public bool EmailRememberLastTo = true;
2016-05-25 06:15:45 +12:00
public string EmailLastTo = "";
public string EmailDefaultSubject = "Sending email from ShareX";
2013-11-03 23:53:49 +13:00
public string EmailDefaultBody = "Screenshot is attached.";
public bool EmailAutomaticSend = false;
public string EmailAutomaticSendTo = "";
2013-11-03 23:53:49 +13:00
// Jira
public string JiraHost = "http://";
public string JiraIssuePrefix = "PROJECT-";
public OAuthInfo JiraOAuthInfo = null;
// Mega
public MegaApiClient.AuthInfos MegaAuthInfos = null;
public string MegaParentNodeId = null;
2014-03-27 05:56:05 +13:00
// Amazon S3
2014-03-29 01:55:41 +13:00
public AmazonS3Settings AmazonS3Settings = new AmazonS3Settings()
{
2014-04-16 07:30:46 +12:00
ObjectPrefix = "ShareX/%y/%mo",
2014-03-27 05:56:05 +13:00
UseReducedRedundancyStorage = true
};
2014-07-07 06:45:36 +12:00
// ownCloud
public string OwnCloudHost = "";
public string OwnCloudUsername = "";
public string OwnCloudPassword = "";
public string OwnCloudPath = "/";
public bool OwnCloudCreateShare = true;
2014-07-07 09:06:37 +12:00
public bool OwnCloudDirectLink = false;
public bool OwnCloud81Compatibility = false;
2014-07-07 06:45:36 +12:00
2014-07-23 10:32:14 +12:00
// MediaFire
public string MediaFireUsername = "";
public string MediaFirePassword = "";
public string MediaFirePath = "";
2014-07-23 13:59:45 +12:00
public bool MediaFireUseLongLink = false;
2014-07-23 10:32:14 +12:00
// Pushbullet
public PushbulletSettings PushbulletSettings = new PushbulletSettings();
// Up1
public string Up1Host = "https://up1.ca";
public string Up1Key = "c61540b5ceecd05092799f936e27755f";
2015-02-04 09:12:53 +13:00
// Lambda
public LambdaSettings LambdaSettings = new LambdaSettings();
// Lithiio
public LithiioSettings LithiioSettings = new LithiioSettings();
// Pomf
public PomfUploader PomfUploader = new PomfUploader("https://mixtape.moe/upload.php");
2015-12-12 15:30:12 +13:00
// s-ul
2016-05-25 06:15:45 +12:00
public string SulAPIKey = "";
2015-12-12 15:30:12 +13:00
// Seafile
public string SeafileAPIURL = "";
public string SeafileAuthToken = "";
public string SeafileRepoID = "";
public string SeafilePath = "/";
public bool SeafileIsLibraryEncrypted = false;
public string SeafileEncryptedLibraryPassword = "";
public bool SeafileCreateShareableURL = true;
public bool SeafileIgnoreInvalidCert = false;
2015-10-16 21:23:30 +13:00
public int SeafileShareDaysToExpire = 0;
public string SeafileSharePassword = "";
public string SeafileAccInfoEmail = "";
public string SeafileAccInfoUsage = "";
2015-12-02 07:02:06 +13:00
// Streamable
public bool StreamableAnonymous = true;
2015-12-02 07:02:06 +13:00
public string StreamableUsername = "";
public string StreamablePassword = "";
public bool StreamableUseDirectURL = false;
2015-12-02 07:02:06 +13:00
2013-11-03 23:53:49 +13:00
#endregion File uploaders
#region URL shorteners
2013-12-21 04:59:26 +13:00
// bit.ly
public OAuth2Info BitlyOAuth2Info = null;
2016-05-25 06:15:45 +12:00
public string BitlyDomain = "";
2013-12-21 04:59:26 +13:00
// Google URL Shortener
2013-11-03 23:53:49 +13:00
public AccountType GoogleURLShortenerAccountType = AccountType.Anonymous;
public OAuth2Info GoogleURLShortenerOAuth2Info = null;
// yourls.org
public string YourlsAPIURL = "http://yoursite.com/yourls-api.php";
2016-05-25 06:15:45 +12:00
public string YourlsSignature = "";
public string YourlsUsername = "";
public string YourlsPassword = "";
2014-07-13 23:10:42 +12:00
// adf.ly
2016-05-25 06:15:45 +12:00
public string AdFlyAPIKEY = "";
public string AdFlyAPIUID = "";
2014-07-13 23:10:42 +12:00
2015-07-21 08:12:13 +12:00
// coinurl.com
2016-05-25 06:15:45 +12:00
public string CoinURLUUID = "";
2015-07-21 08:12:13 +12:00
2015-08-05 06:49:07 +12:00
// polr
2016-05-25 06:15:45 +12:00
public string PolrAPIHostname = "";
public string PolrAPIKey = "";
2015-08-05 06:49:07 +12:00
2013-11-03 23:53:49 +13:00
#endregion URL shorteners
2014-07-12 05:41:39 +12:00
#region URL sharing services
2013-11-03 23:53:49 +13:00
// Twitter
public List<OAuthInfo> TwitterOAuthInfoList = new List<OAuthInfo>();
public int TwitterSelectedAccount = 0;
2015-04-28 19:50:41 +12:00
public bool TwitterSkipMessageBox = false;
2016-05-25 06:15:45 +12:00
public string TwitterDefaultMessage = "";
2013-11-03 23:53:49 +13:00
2014-07-12 05:41:39 +12:00
#endregion URL sharing services
2013-11-03 23:53:49 +13:00
#region Custom Uploaders
public List<CustomUploaderItem> CustomUploadersList = new List<CustomUploaderItem>();
public int CustomImageUploaderSelected = 0;
public int CustomTextUploaderSelected = 0;
public int CustomFileUploaderSelected = 0;
public int CustomURLShortenerSelected = 0;
#endregion Custom Uploaders
}
}