FreeRDP
Loading...
Searching...
No Matches
ClipRequest Class Reference

a clipboard format request More...

#include <sdl_clip.hpp>

Public Member Functions

 ClipRequest (UINT32 format, const std::string &mime)
 ClipRequest (const ClipRequest &other)=default
 ClipRequest (ClipRequest &&other)=default
ClipRequest & operator= (const ClipRequest &other)=delete
ClipRequest & operator= (ClipRequest &&other)=delete
uint32_t format () const
std::string formatstr () const
std::string mime () const
bool success () const
void setSuccess (bool status)

Detailed Description

a clipboard format request

FreeRDP: A Remote Desktop Protocol Implementation SDL Client clipboard

Copyright 2024 Armin Novak armin.nosp@m..nov.nosp@m.ak@th.nosp@m.inca.nosp@m.st.co.nosp@m.m Copyright 2024 Thincast Technologies GmbH

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition at line 40 of file sdl_clip.hpp.

Constructor & Destructor Documentation

◆ ClipRequest()

ClipRequest::ClipRequest ( UINT32 format,
const std::string & mime )

Definition at line 1425 of file sdl_clip.cpp.

1426 : _format(format), _mime(mime), _success(false)
1427{
1428}

Member Function Documentation

◆ format()

uint32_t ClipRequest::format ( ) const
nodiscard

Definition at line 1430 of file sdl_clip.cpp.

1431{
1432 return _format;
1433}

◆ formatstr()

std::string ClipRequest::formatstr ( ) const
nodiscard

Definition at line 1435 of file sdl_clip.cpp.

1436{
1437 return ClipboardGetFormatIdString(_format);
1438}

◆ mime()

std::string ClipRequest::mime ( ) const
nodiscard

Definition at line 1440 of file sdl_clip.cpp.

1441{
1442 return _mime;
1443}

◆ setSuccess()

void ClipRequest::setSuccess ( bool status)

Definition at line 1450 of file sdl_clip.cpp.

1451{
1452 _success = status;
1453}

◆ success()

bool ClipRequest::success ( ) const
nodiscard

Definition at line 1445 of file sdl_clip.cpp.

1446{
1447 return _success;
1448}

The documentation for this class was generated from the following files: