Host services do not support an image file (#812)

This commit is contained in:
Uwe Seimet 2022-08-26 16:50:18 +02:00 committed by GitHub
parent 52802019de
commit eeae12ac4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -167,7 +167,7 @@ public:
const string GetPaddedName() const; const string GetPaddedName() const;
bool SupportsParams() const { return supports_params; } bool SupportsParams() const { return supports_params; }
bool SupportsFile() const { return !supports_params; } virtual bool SupportsFile() const { return !supports_params; }
void SupportsParams(bool supports_paams) { this->supports_params = supports_paams; } void SupportsParams(bool supports_paams) { this->supports_params = supports_paams; }
const unordered_map<string, string> GetParams() const { return params; } const unordered_map<string, string> GetParams() const { return params; }
const string GetParam(const string&); const string GetParam(const string&);

View File

@ -32,6 +32,8 @@ public:
int ModeSense6(const DWORD *, BYTE *); int ModeSense6(const DWORD *, BYTE *);
int ModeSense10(const DWORD *, BYTE *, int); int ModeSense10(const DWORD *, BYTE *, int);
bool SupportsFile() const override { return false; }
private: private:
typedef ModePageDevice super; typedef ModePageDevice super;