FreeRDP
MRDPView Class Reference

#import <MRDPView.h>

Inheritance diagram for MRDPView:
Collaboration diagram for MRDPView:

Instance Methods

(int) - rdpStart:
 
(void) - setCursor:
 
(void) - setScrollOffset:y:w:h:
 
(void) - onPasteboardTimerFired:
 
(void) - pause
 
(void) - resume
 
(void) - releaseResources
 

Data Fields

NSPasteboard * pasteboard_rd
 
NSPasteboard * pasteboard_wr
 
int pasteboard_changecount
 
int pasteboard_format
 

Protected Attributes

mfContextmfc
 
NSBitmapImageRep * bmiRep
 
NSMutableArray * cursors
 
NSMutableArray * windows
 
NSTimer * pasteboard_timer
 
NSCursor * currentCursor
 
NSRect prevWinPosition
 
freerdp * instance
 
rdpContext * context
 
CGContextRef bitmap_context
 
char * pixel_data
 
int argc
 
char ** argv
 
DWORD kbdModFlags
 
BOOL initialized
 
NSPoint savedDragLocation
 
BOOL firstCreateWindow
 
BOOL isMoveSizeInProgress
 
BOOL skipResizeOnce
 
BOOL saveInitialDragLoc
 
BOOL skipMoveWindowOnce
 

Properties

int is_connected
 

Detailed Description

FreeRDP: A Remote Desktop Protocol Implementation MacFreeRDP

Copyright 2012 Thomas Goddard

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 31 of file MRDPView.h.

Method Documentation

◆ onPasteboardTimerFired:

- (void) onPasteboardTimerFired: (NSTimer *)  timer

System-Declared Uniform Type Identifiers: https://developer.apple.com/library/ios/documentation/Miscellaneous/Reference/UTIRef/Articles/System-DeclaredUniformTypeIdentifiers.html

Definition at line 669 of file MRDPView.m.

711  :(NSTimer *)timer
712 {
713  UINT32 formatId;
714  BOOL formatMatch;
715  int changeCount;
716  NSData *formatData;
717  NSString *formatString;
718  const char *formatType;
719  NSPasteboardItem *item;
720  changeCount = (int)[pasteboard_rd changeCount];
721 
722  if (changeCount == pasteboard_changecount)
723  return;
724 
725  pasteboard_changecount = changeCount;
726  NSArray *items = [pasteboard_rd pasteboardItems];
727 
728  if ([items count] < 1)
729  return;
730 
731  item = [items objectAtIndex:0];
736  formatMatch = FALSE;
737 
738  for (NSString *type in [item types])
739  {
740  formatType = [type UTF8String];
741 
742  if (strcmp(formatType, "public.utf8-plain-text") == 0)
743  {
744  formatData = [item dataForType:type];
745 
746  if (formatData == nil)
747  {
748  break;
749  }
750 
751  formatString = [[NSString alloc] initWithData:formatData encoding:NSUTF8StringEncoding];
752 
753  const char *data = [formatString cStringUsingEncoding:NSUTF8StringEncoding];
754  const size_t dataLen = [formatString lengthOfBytesUsingEncoding:NSUTF8StringEncoding];
755  formatId = ClipboardRegisterFormat(mfc->clipboard, "text/plain");
756  ClipboardSetData(mfc->clipboard, formatId, data, dataLen + 1);
757  [formatString release];
758 
759  formatMatch = TRUE;
760 
761  break;
762  }
763  }
764 
765  if (!formatMatch)
766  ClipboardEmpty(mfc->clipboard);
767 
768  if (mfc->clipboardSync)
769  mac_cliprdr_send_client_format_list(mfc->cliprdr);
770 }

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