Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
3b097454
Kaydet (Commit)
3b097454
authored
Haz 04, 2013
tarafından
Siqi LIU
Kaydeden (comit)
siqi
Haz 04, 2013
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
initial commit
üst
deac1594
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
27 deletions
+34
-27
Client.h
ios/sdremote/sdremote/Client.h
+0
-13
Client.m
ios/sdremote/sdremote/Client.m
+0
-13
Client.m
ios/sdremote/sdremote/Communication/Client.m
+28
-1
libreoffice_sdremoteViewController.h
ios/sdremote/sdremote/libreoffice_sdremoteViewController.h
+2
-0
libreoffice_sdremoteViewController.m
ios/sdremote/sdremote/libreoffice_sdremoteViewController.m
+4
-0
No files found.
ios/sdremote/sdremote/Client.h
deleted
100644 → 0
Dosyayı görüntüle @
deac1594
//
// Client.h
// sdremote
//
// Created by Liu Siqi on 6/3/13.
// Copyright (c) 2013 libreoffice. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface
Client
:
NSObject
@end
ios/sdremote/sdremote/Client.m
deleted
100644 → 0
Dosyayı görüntüle @
deac1594
//
// Client.m
// sdremote
//
// Created by Liu Siqi on 6/3/13.
// Copyright (c) 2013 libreoffice. All rights reserved.
//
#import "Client.h"
@implementation
Client
@end
ios/sdremote/sdremote/Communication/Client.m
Dosyayı görüntüle @
3b097454
...
@@ -18,12 +18,14 @@
...
@@ -18,12 +18,14 @@
@property
(
nonatomic
,
strong
)
NSString
*
mPin
;
@property
(
nonatomic
,
strong
)
NSString
*
mPin
;
@property
(
nonatomic
,
strong
)
NSString
*
mName
;
@property
(
nonatomic
,
strong
)
NSString
*
mName
;
@property
int
mPort
;
@property
const
int
mPort
;
@property
(
nonatomic
,
weak
)
Server
*
mServer
;
@property
(
nonatomic
,
weak
)
Server
*
mServer
;
@property
(
nonatomic
,
weak
)
Receiver
*
mReceiver
;
@property
(
nonatomic
,
weak
)
Receiver
*
mReceiver
;
@property
(
nonatomic
,
weak
)
CommunicationManager
*
mComManager
;
@property
(
nonatomic
,
weak
)
CommunicationManager
*
mComManager
;
@property
(
nonatomic
,
retain
)
NSMutableData
*
mData
;
@end
@end
...
@@ -36,6 +38,7 @@
...
@@ -36,6 +38,7 @@
@synthesize
mName
=
_mName
;
@synthesize
mName
=
_mName
;
@synthesize
mServer
=
_mServer
;
@synthesize
mServer
=
_mServer
;
@synthesize
mComManager
=
_mComManager
;
@synthesize
mComManager
=
_mComManager
;
@synthesize
mData
=
_mData
;
NSString
*
const
CHARSET
=
@"UTF-8"
;
NSString
*
const
CHARSET
=
@"UTF-8"
;
...
@@ -78,6 +81,30 @@ NSString * const CHARSET = @"UTF-8";
...
@@ -78,6 +81,30 @@ NSString * const CHARSET = @"UTF-8";
}
}
}
}
-
(
void
)
stream
:(
NSStream
*
)
stream
handleEvent
:(
NSStreamEvent
)
eventCode
{
switch
(
eventCode
)
{
case
NSStreamEventHasBytesAvailable
:
{
if
(
!
self
.
mData
)
{
self
.
mData
=
[
NSMutableData
data
];
}
uint8_t
buf
[
1024
];
unsigned
int
len
=
0
;
len
=
[(
NSInputStream
*
)
stream
read
:
buf
maxLength
:
1024
];
if
(
len
)
{
[
self
.
mData
appendBytes
:(
const
void
*
)
buf
length
:
len
];
// bytesRead is an instance variable of type NSNumber.
[
bytesRead
setIntValue
:[
bytesRead
intValue
]
+
len
];
}
else
{
NSLog
(
@"no buffer!"
);
}
break
;
}
}
}
-
(
void
)
connect
-
(
void
)
connect
{
{
...
...
ios/sdremote/sdremote/libreoffice_sdremoteViewController.h
Dosyayı görüntüle @
3b097454
...
@@ -9,5 +9,7 @@
...
@@ -9,5 +9,7 @@
#import <UIKit/UIKit.h>
#import <UIKit/UIKit.h>
@interface
libreoffice_sdremoteViewController
:
UIViewController
@interface
libreoffice_sdremoteViewController
:
UIViewController
@property
(
weak
,
nonatomic
)
IBOutlet
UIBarButtonItem
*
connect
;
@end
@end
ios/sdremote/sdremote/libreoffice_sdremoteViewController.m
Dosyayı görüntüle @
3b097454
...
@@ -28,4 +28,8 @@
...
@@ -28,4 +28,8 @@
// Dispose of any resources that can be recreated.
// Dispose of any resources that can be recreated.
}
}
-
(
void
)
viewDidUnload
{
[
self
setConnect
:
nil
];
[
super
viewDidUnload
];
}
@end
@end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment