FreeRDP
sdl_clip.cpp File Reference
#include <string>
#include <mutex>
#include <iterator>
#include <algorithm>
#include <utility>
#include <winpr/wlog.h>
#include "sdl_clip.hpp"
#include "sdl_freerdp.hpp"

Macros

#define TAG   CLIENT_TAG("sdl.cliprdr")
 
#define mime_text_plain   "text/plain"
 
#define mime_text_utf8   mime_text_plain ";charset=utf-8"
 
#define BMP_MIME_LIST   "image/bmp", "image/x-bmp", "image/x-MS-bmp", "image/x-win-bitmap"
 

Functions

static bool operator< (const CLIPRDR_FORMAT &lhs, const CLIPRDR_FORMAT &rhs)
 
static bool operator> (const CLIPRDR_FORMAT &lhs, const CLIPRDR_FORMAT &rhs)
 
static bool operator== (const CLIPRDR_FORMAT &lhs, const CLIPRDR_FORMAT &rhs)
 

Variables

static const std::vector< const char * > mime_text
 
static const char mime_png [] = "image/png"
 
static const char mime_webp [] = "image/webp"
 
static const char mime_jpg [] = "image/jpeg"
 
static const char mime_tiff [] = "image/tiff"
 
static const char mime_uri_list [] = "text/uri-list"
 
static const char mime_html [] = "text/html"
 
static const std::vector< const char * > mime_bitmap = { BMP_MIME_LIST }
 
static const std::vector< const char * > mime_image
 
static const char mime_gnome_copied_files [] = "x-special/gnome-copied-files"
 
static const char mime_mate_copied_files [] = "x-special/mate-copied-files"
 
static const char * type_HtmlFormat = "HTML Format"
 
static const char * type_FileGroupDescriptorW = "FileGroupDescriptorW"
 

Macro Definition Documentation

◆ BMP_MIME_LIST

#define BMP_MIME_LIST   "image/bmp", "image/x-bmp", "image/x-MS-bmp", "image/x-win-bitmap"

◆ mime_text_plain

#define mime_text_plain   "text/plain"

◆ mime_text_utf8

#define mime_text_utf8   mime_text_plain ";charset=utf-8"

◆ TAG

#define TAG   CLIENT_TAG("sdl.cliprdr")

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.

Function Documentation

◆ operator<()

static bool operator< ( const CLIPRDR_FORMAT lhs,
const CLIPRDR_FORMAT rhs 
)
static

◆ operator==()

static bool operator== ( const CLIPRDR_FORMAT lhs,
const CLIPRDR_FORMAT rhs 
)
static

◆ operator>()

static bool operator> ( const CLIPRDR_FORMAT lhs,
const CLIPRDR_FORMAT rhs 
)
static

Variable Documentation

◆ mime_bitmap

const std::vector<const char*> mime_bitmap = { BMP_MIME_LIST }
static

◆ mime_gnome_copied_files

const char mime_gnome_copied_files[] = "x-special/gnome-copied-files"
static

◆ mime_html

const char mime_html[] = "text/html"
static

◆ mime_image

const std::vector<const char*> mime_image
static
Initial value:
static const char mime_webp[]
Definition: sdl_clip.cpp:41
static const char mime_jpg[]
Definition: sdl_clip.cpp:42
#define BMP_MIME_LIST
Definition: sdl_clip.cpp:47
static const char mime_png[]
Definition: sdl_clip.cpp:40
static const char mime_tiff[]
Definition: sdl_clip.cpp:43

◆ mime_jpg

const char mime_jpg[] = "image/jpeg"
static

◆ mime_mate_copied_files

const char mime_mate_copied_files[] = "x-special/mate-copied-files"
static

◆ mime_png

const char mime_png[] = "image/png"
static

◆ mime_text

const std::vector<const char*> mime_text
static
Initial value:
= { mime_text_plain, mime_text_utf8, "UTF8_STRING",
"COMPOUND_TEXT", "TEXT", "STRING" }
#define mime_text_utf8
Definition: sdl_clip.cpp:35
#define mime_text_plain
Definition: sdl_clip.cpp:34

◆ mime_tiff

const char mime_tiff[] = "image/tiff"
static

◆ mime_uri_list

const char mime_uri_list[] = "text/uri-list"
static

◆ mime_webp

const char mime_webp[] = "image/webp"
static

◆ type_FileGroupDescriptorW

const char* type_FileGroupDescriptorW = "FileGroupDescriptorW"
static

◆ type_HtmlFormat

const char* type_HtmlFormat = "HTML Format"
static