BUG-1769: Added OAuth 2 for Picasa

This commit is contained in:
Robin 2015-04-14 17:11:33 +02:00
commit ea4631af3d
7 changed files with 660 additions and 139 deletions

View file

@ -20,6 +20,7 @@
using System.Windows.Forms;
using Greenshot.IniFile;
using GreenshotPlugin.Core;
using System;
namespace GreenshotPicasaPlugin {
/// <summary>
@ -36,11 +37,45 @@ namespace GreenshotPicasaPlugin {
[IniProperty("AfterUploadLinkToClipBoard", Description = "After upload send Picasa link to clipboard.", DefaultValue = "true")]
public bool AfterUploadLinkToClipBoard;
[IniProperty("PicasaToken", Description = "Picasa Token", Encrypted = true)]
public string PicasaToken;
[IniProperty("RefreshToken", Description = "Picasa refresh Token", Encrypted = true)]
public string RefreshToken {
get;
set;
}
[IniProperty("PicasaTokenSecret", Description = "PicasaTokenSecret", Encrypted = true)]
public string PicasaTokenSecret;
[IniProperty("AddFilename", Description = "Is the filename passed on to Picasa", DefaultValue = "False")]
public bool AddFilename {
get;
set;
}
[IniProperty("UploadUser", Description = "The picasa user to upload to", DefaultValue = "default")]
public string UploadUser {
get;
set;
}
[IniProperty("UploadAlbum", Description = "The picasa album to upload to", DefaultValue = "default")]
public string UploadAlbum {
get;
set;
}
/// <summary>
/// Not stored
/// </summary>
public string AccessToken {
get;
set;
}
/// <summary>
/// Not stored
/// </summary>
public DateTimeOffset AccessTokenExpires {
get;
set;
}
/// <summary>
/// A form for token