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
 
ClipRequestoperator= (const ClipRequest &other)=delete
 
ClipRequestoperator= (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 keyboard helper

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 38 of file sdl_clip.hpp.

Constructor & Destructor Documentation

◆ ClipRequest()

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

Definition at line 928 of file sdl_clip.cpp.

929 : _format(format), _mime(mime), _success(false)
930{
931}

Member Function Documentation

◆ format()

uint32_t ClipRequest::format ( ) const

Definition at line 933 of file sdl_clip.cpp.

934{
935 return _format;
936}

◆ formatstr()

std::string ClipRequest::formatstr ( ) const

Definition at line 938 of file sdl_clip.cpp.

939{
940 return ClipboardGetFormatIdString(_format);
941}

◆ mime()

std::string ClipRequest::mime ( ) const

Definition at line 943 of file sdl_clip.cpp.

944{
945 return _mime;
946}

◆ setSuccess()

void ClipRequest::setSuccess ( bool  status)

Definition at line 953 of file sdl_clip.cpp.

954{
955 _success = status;
956}

◆ success()

bool ClipRequest::success ( ) const

Definition at line 948 of file sdl_clip.cpp.

949{
950 return _success;
951}

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