2015-06-18 17:33:07 +00:00
|
|
|
#pragma once
|
|
|
|
|
#include <collection.h>
|
|
|
|
|
#include <ppltasks.h>
|
|
|
|
|
|
|
|
|
|
using namespace Windows::Foundation;
|
|
|
|
|
using namespace Windows::Foundation::Collections;
|
|
|
|
|
using namespace Platform;
|
|
|
|
|
using namespace Platform::Collections;
|
|
|
|
|
using namespace concurrency;
|
2015-06-23 13:41:49 +00:00
|
|
|
using namespace Windows::UI::Xaml::Media::Imaging;
|
|
|
|
|
using namespace Windows::Storage;
|
2015-06-18 17:33:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace VBA10
|
|
|
|
|
{
|
2015-06-18 22:29:52 +00:00
|
|
|
[Windows::UI::Xaml::Data::BindableAttribute]
|
2015-06-18 17:33:07 +00:00
|
|
|
public ref class ROMDBEntry sealed
|
|
|
|
|
{
|
|
|
|
|
public:
|
2015-06-18 22:29:52 +00:00
|
|
|
ROMDBEntry(int locationtype, Platform::String^ displayname, Platform::String^ filename, Platform::String^ filepath);
|
2015-06-18 17:33:07 +00:00
|
|
|
|
2015-06-18 22:29:52 +00:00
|
|
|
ROMDBEntry(int locationtype, Platform::String^ displayname, Platform::String^ filename, Platform::String^ filepath,
|
2015-06-18 17:33:07 +00:00
|
|
|
DateTime lastplayed, int autosaveindex, Platform::String^ snapshoturi);
|
|
|
|
|
|
|
|
|
|
//property int ID
|
|
|
|
|
//{
|
|
|
|
|
// int get()
|
|
|
|
|
// {
|
|
|
|
|
// return _id;
|
|
|
|
|
// }
|
|
|
|
|
// void set(int value)
|
|
|
|
|
// {
|
|
|
|
|
// _id = value;
|
|
|
|
|
// }
|
|
|
|
|
//}
|
2015-06-23 13:41:49 +00:00
|
|
|
|
2015-06-18 17:33:07 +00:00
|
|
|
|
|
|
|
|
property int LocationType //0: local folder, 1: external
|
|
|
|
|
{
|
|
|
|
|
int get()
|
|
|
|
|
{
|
|
|
|
|
return _locationType;
|
|
|
|
|
}
|
|
|
|
|
void set(int value)
|
|
|
|
|
{
|
|
|
|
|
_locationType = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
property Platform::String^ DisplayName
|
|
|
|
|
{
|
|
|
|
|
Platform::String^ get()
|
|
|
|
|
{
|
|
|
|
|
return _displayName;
|
|
|
|
|
}
|
|
|
|
|
void set(Platform::String^ value)
|
|
|
|
|
{
|
|
|
|
|
_displayName = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
property Platform::String^ FileName
|
|
|
|
|
{
|
|
|
|
|
Platform::String^ get()
|
|
|
|
|
{
|
|
|
|
|
return _fileName;
|
|
|
|
|
}
|
|
|
|
|
void set(Platform::String^ value)
|
|
|
|
|
{
|
|
|
|
|
_fileName = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2015-06-18 22:29:52 +00:00
|
|
|
property Platform::String^ FilePath
|
2015-06-18 17:33:07 +00:00
|
|
|
{
|
|
|
|
|
Platform::String^ get()
|
|
|
|
|
{
|
2015-06-18 22:29:52 +00:00
|
|
|
return _filePath;
|
2015-06-18 17:33:07 +00:00
|
|
|
}
|
|
|
|
|
void set(Platform::String^ value)
|
|
|
|
|
{
|
2015-06-18 22:29:52 +00:00
|
|
|
_filePath = value;
|
2015-06-18 17:33:07 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
property Windows::Foundation::DateTime LastPlay
|
|
|
|
|
{
|
|
|
|
|
Windows::Foundation::DateTime get()
|
|
|
|
|
{
|
|
|
|
|
return _lastPlayed;
|
|
|
|
|
}
|
|
|
|
|
void set(Windows::Foundation::DateTime value)
|
|
|
|
|
{
|
|
|
|
|
_lastPlayed = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
property int AutoSaveIndex
|
|
|
|
|
{
|
|
|
|
|
int get()
|
|
|
|
|
{
|
|
|
|
|
return _autoSaveIndex;
|
|
|
|
|
}
|
|
|
|
|
void set(int value)
|
|
|
|
|
{
|
|
|
|
|
_autoSaveIndex = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
property Platform::String^ SnapshotUri
|
|
|
|
|
{
|
|
|
|
|
Platform::String^ get()
|
|
|
|
|
{
|
|
|
|
|
return _snapshotUri;
|
|
|
|
|
}
|
|
|
|
|
void set(Platform::String^ value)
|
|
|
|
|
{
|
|
|
|
|
_snapshotUri = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2015-06-23 13:41:49 +00:00
|
|
|
//this is to hold temporary information about ROM folder when the app is running (for convenience)
|
|
|
|
|
property StorageFolder^ Folder
|
|
|
|
|
{
|
|
|
|
|
StorageFolder^ get()
|
|
|
|
|
{
|
|
|
|
|
return _folder;
|
|
|
|
|
}
|
|
|
|
|
void set(StorageFolder^ value)
|
|
|
|
|
{
|
|
|
|
|
_folder = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
property StorageFile^ File
|
|
|
|
|
{
|
|
|
|
|
StorageFile^ get()
|
|
|
|
|
{
|
|
|
|
|
return _file;
|
|
|
|
|
}
|
|
|
|
|
void set(StorageFile^ value)
|
|
|
|
|
{
|
|
|
|
|
_file = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//this is just to hold the snapshot image while the app is running
|
|
|
|
|
property BitmapImage^ Snapshot
|
|
|
|
|
{
|
|
|
|
|
BitmapImage^ get()
|
|
|
|
|
{
|
|
|
|
|
return _snapshot;
|
|
|
|
|
}
|
|
|
|
|
void set(BitmapImage^ value)
|
|
|
|
|
{
|
|
|
|
|
_snapshot = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2015-06-18 17:33:07 +00:00
|
|
|
private:
|
|
|
|
|
int _id;
|
|
|
|
|
int _locationType;
|
|
|
|
|
Platform::String^ _displayName;
|
|
|
|
|
Platform::String^ _fileName;
|
2015-06-18 22:29:52 +00:00
|
|
|
Platform::String^ _filePath;
|
2015-06-18 17:33:07 +00:00
|
|
|
Windows::Foundation::DateTime _lastPlayed;
|
|
|
|
|
int _autoSaveIndex;
|
|
|
|
|
Platform::String^ _snapshotUri;
|
2015-06-23 13:41:49 +00:00
|
|
|
BitmapImage^ _snapshot;
|
|
|
|
|
StorageFolder^ _folder;
|
|
|
|
|
StorageFile^ _file;
|
2015-06-18 17:33:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|