Esempio n. 1
0
		public override void onUploadCancel(SmcProvider smcProvider, SmcItem smcItem, int error)
		{
			Toast.makeText(this, "Upload canceled", Toast.LENGTH_SHORT).show();
		}
Esempio n. 2
0
		public virtual void onDeviceSelected(SmcDevice device)
		{
			mUploadButton.Enabled = true;
			provider = (SmcProvider) device;
			provider.EventListener = this;
			provider.ResponseListener = this;
			mUploadButton.Enabled = provider.Uploadable;
			if (!provider.Uploadable)
			{
				Toast.makeText(this, "This provider doesn't support file upload", Toast.LENGTH_SHORT).show();
			}
		}
Esempio n. 3
0
		public override void onSearch(SmcProvider smcProvider, IList<SmcItem> smcItems, int requestedStartIndex, int requestedCount, SmcProvider.SearchCriteria searchCriteria, bool endOfItems, int error)
		{

		}
Esempio n. 4
0
		public override void onUpload(SmcProvider smcProvider, SmcItem smcItem, int error)
		{
			if (error != Smc.SUCCESS)
			{
				Toast.makeTextuniquetempvar.show();
			}
		}
Esempio n. 5
0
		public override void onBrowse(SmcProvider smcProvider, IList<SmcItem> smcItems, int requestedStartIndex, int requestedCount, SmcItem requestedFolder, bool endOfItems, int error)
		{

		}
Esempio n. 6
0
		public override void onUploadCompleted(SmcProvider smcProvider, SmcItem smcItem)
		{
			mUploadButton.Text = [email protected];
			progressBar.Progress = 0;
			uploadInProgress = false;
			Toast.makeText(this, "File uploaded successfully", Toast.LENGTH_SHORT).show();
		}
Esempio n. 7
0
		public override void onUploadProgressUpdated(SmcProvider smcProvider, long receivedSize, long totalSize, SmcItem smcItem, int error)
		{
			progressBar.Max = (int) totalSize;
			progressBar.Progress = (int) receivedSize;
		}
Esempio n. 8
0
		public override void onContentUpdated(SmcProvider smcProvider, int error)
		{

		}
Esempio n. 9
0
		public virtual void onAllShareDisabled()
		{
			mUploadButton.Enabled = false;
			cancelUpload();
			provider.ResponseListener = null;
			provider.EventListener = null;
			provider = null;
		}