C# 클래스 AddonHelper.Addon

파일 보기 프로젝트 열기: angelog/ClipUpload 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
ProgressBar cProgressBar
rnd System.Random

공개 메소드들

메소드 설명
AddLog ( string URL, string info ) : void

Add a recently uploaded file to the upload log

Backup ( byte buffer, string filename ) : void

Make a backup of the given file buffer as the current filename

Backup ( string sourceFile ) : void

Make a backup of the given source file

Debug ( string str ) : void

Writes to debug.txt

Drag ( Action doneDragging ) : void

Drag to upload

Epoch ( ) : long

Returns the linux epoch time (seconds passed since 1/1/1970)

GetBetween ( string Source, string Str1, string Str2 ) : string

Get a string between 2 other strings from the source string

GetEncoder ( ImageFormat format ) : System.Drawing.Imaging.ImageCodecInfo

Returns the image encoder for the given ImageFormat

GetProxy ( ) : WebProxy

Get a WebProxy object from the global proxy settings in the ClipUpload application

ImagePipeline ( Image img ) : void

Transforms an image based on global upload settings

LongDataEscape ( string Str ) : string

Alternative of M:System.Uri.EscapeDataString(System.String) to allow for much longer data to be escaped

MD5 ( string S ) : string

Generate an MD5 hash of the given string

PopulateKeysCombobox ( ComboBox comboBox ) : void

Populate a keys combobox with possible keys to press

RandomFilename ( int len, string chars = "abcdefghijklmnopqrstuvwxyz0123456789" ) : string

Returns a random filename based on the length and the allowed characters given

RandomString ( int len, string chars = "abcdefghijklmnopqrstuvwxyz0123456789" ) : string

Returns a random string based on the length and the allowed characters given

SetClipboardText ( string Text ) : void

Safely sets the clipboard text. Refrain from using Clipboard.SetText directly, instead, use this function!

SetShortcuts ( bool enabled ) : void

Enables or disables shortcuts in ClipUpload.

base64Decode ( string input ) : string

Decode a base64 string

base64Encode ( string input ) : string

Encode a string in base64

getDateString ( ) : string

Returns a date string without any delimiters in the following order: Day, month, year, hour, minute, second

비공개 메소드들

메소드 설명
GetOpenClipboardWindow ( ) : IntPtr
formatFilename ( string origFilename ) : string

메소드 상세

AddLog() 공개 메소드

Add a recently uploaded file to the upload log
public AddLog ( string URL, string info ) : void
URL string The URL
info string Additional info that will appear in the recent uploads list
리턴 void

Backup() 공개 메소드

Make a backup of the given file buffer as the current filename
public Backup ( byte buffer, string filename ) : void
buffer byte The file buffer
filename string The filename
리턴 void

Backup() 공개 메소드

Make a backup of the given source file
public Backup ( string sourceFile ) : void
sourceFile string The source filename
리턴 void

Debug() 공개 메소드

Writes to debug.txt
public Debug ( string str ) : void
str string Line of text
리턴 void

Drag() 공개 메소드

Drag to upload
public Drag ( Action doneDragging ) : void
doneDragging Action Dragging callback
리턴 void

Epoch() 공개 메소드

Returns the linux epoch time (seconds passed since 1/1/1970)
public Epoch ( ) : long
리턴 long

GetBetween() 공개 메소드

Get a string between 2 other strings from the source string
public GetBetween ( string Source, string Str1, string Str2 ) : string
Source string The source string
Str1 string The first string, for example: "<link>"
Str2 string The second string, for example: "</link>"
리턴 string

GetEncoder() 공개 메소드

Returns the image encoder for the given ImageFormat
public GetEncoder ( ImageFormat format ) : System.Drawing.Imaging.ImageCodecInfo
format System.Drawing.Imaging.ImageFormat The ImageFormat to get the encoder for
리턴 System.Drawing.Imaging.ImageCodecInfo

GetProxy() 공개 메소드

Get a WebProxy object from the global proxy settings in the ClipUpload application
public GetProxy ( ) : WebProxy
리턴 System.Net.WebProxy

ImagePipeline() 공개 메소드

Transforms an image based on global upload settings
public ImagePipeline ( Image img ) : void
img Image The base image
리턴 void

LongDataEscape() 공개 메소드

Alternative of M:System.Uri.EscapeDataString(System.String) to allow for much longer data to be escaped
public LongDataEscape ( string Str ) : string
Str string The string to be escaped
리턴 string

MD5() 공개 메소드

Generate an MD5 hash of the given string
public MD5 ( string S ) : string
S string The string
리턴 string

PopulateKeysCombobox() 공개 메소드

Populate a keys combobox with possible keys to press
public PopulateKeysCombobox ( ComboBox comboBox ) : void
comboBox System.Windows.Forms.ComboBox The combobox
리턴 void

RandomFilename() 공개 메소드

Returns a random filename based on the length and the allowed characters given
public RandomFilename ( int len, string chars = "abcdefghijklmnopqrstuvwxyz0123456789" ) : string
len int The length
chars string Allowed characters
리턴 string

RandomString() 공개 정적인 메소드

Returns a random string based on the length and the allowed characters given
public static RandomString ( int len, string chars = "abcdefghijklmnopqrstuvwxyz0123456789" ) : string
len int The length
chars string Allowed characters
리턴 string

SetClipboardText() 공개 메소드

Safely sets the clipboard text. Refrain from using Clipboard.SetText directly, instead, use this function!
public SetClipboardText ( string Text ) : void
Text string The text to set the clipboard to
리턴 void

SetShortcuts() 공개 정적인 메소드

Enables or disables shortcuts in ClipUpload.
public static SetShortcuts ( bool enabled ) : void
enabled bool Bool to enable or disable
리턴 void

base64Decode() 공개 메소드

Decode a base64 string
public base64Decode ( string input ) : string
input string The base64 string to be decoded
리턴 string

base64Encode() 공개 메소드

Encode a string in base64
public base64Encode ( string input ) : string
input string The string to be encoded
리턴 string

getDateString() 공개 메소드

Returns a date string without any delimiters in the following order: Day, month, year, hour, minute, second
public getDateString ( ) : string
리턴 string

프로퍼티 상세

ProgressBar 공개적으로 프로퍼티

Used to invoke a progressbar window
public cProgressBar ProgressBar
리턴 cProgressBar

rnd 공개적으로 정적으로 프로퍼티

public static Random,System rnd
리턴 System.Random