Files
vba10/FileBrowserPane.xaml.h
Duc Le 2b07693cbe add import save from onedrive
delete more stuff if it is from private storage
2015-08-05 04:08:51 +00:00

37 lines
1.3 KiB
C++

//
// FileBrowserPane.xaml.h
// Declaration of the FileBrowserPane class
//
#pragma once
#include "FileBrowserPane.g.h"
#include "Definitions.h"
#include "cpprest\json.h"
namespace VBA10
{
[Windows::Foundation::Metadata::WebHostHidden]
public ref class FileBrowserPane sealed
{
public:
FileBrowserPane();
protected:
virtual void OnNavigatingFrom(Windows::UI::Xaml::Navigation::NavigatingCancelEventArgs^ e) override;
private:
void fileList_SelectionChanged(Platform::Object^ sender, Windows::UI::Xaml::Controls::SelectionChangedEventArgs^ e);
void closeBtn_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
OneDriveItemType GetOneDriveItemType(std::wstring ext);
Platform::Collections::Vector<OneDriveFileItem^>^ fileVector;
Platform::Collections::Vector<Windows::Foundation::Collections::IVector<OneDriveFileItem^>^>^ onedriveStack;
void client_GetCompleted(web::json::value v);
bool loading;//keep track of when the app is loading new data
void backBtn_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
Concurrency::task<size_t> DownloadFile(OneDriveFileItem^ item, Windows::Storage::CreationCollisionOption collitionOption);
//Windows::Storage::StorageFile^ tmpfile;
};
}