mirror of
https://github.com/akuker/RASCSI.git
synced 2024-06-25 16:29:48 +00:00
39 lines
906 B
C
39 lines
906 B
C
|
//---------------------------------------------------------------------------
|
||
|
//
|
||
|
// SCSI Target Emulator RaSCSI (*^..^*)
|
||
|
// for Raspberry Pi
|
||
|
//
|
||
|
// Copyright (C) 2021 Uwe Seimet
|
||
|
//
|
||
|
//---------------------------------------------------------------------------
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#include "rascsi_interface.pb.h"
|
||
|
#include <string>
|
||
|
|
||
|
using namespace std;
|
||
|
using namespace rascsi_interface;
|
||
|
|
||
|
class RascsiImage
|
||
|
{
|
||
|
public:
|
||
|
|
||
|
RascsiImage();
|
||
|
~RascsiImage() {};
|
||
|
|
||
|
string GetDefaultImageFolder() const { return default_image_folder; }
|
||
|
string SetDefaultImageFolder(const string&);
|
||
|
bool IsValidSrcFilename(const string&);
|
||
|
bool IsValidDstFilename(const string&);
|
||
|
bool CreateImage(int, const PbCommand&);
|
||
|
bool DeleteImage(int, const PbCommand&);
|
||
|
bool RenameImage(int, const PbCommand&);
|
||
|
bool CopyImage(int, const PbCommand&);
|
||
|
bool SetImagePermissions(int, const PbCommand&);
|
||
|
|
||
|
private:
|
||
|
|
||
|
string default_image_folder;
|
||
|
};
|