mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 02:10:48 +00:00
Added @interface GSDisplayServer (ServiceOps)
This commit is contained in:
parent
d3bf24b584
commit
e50f0274ca
2 changed files with 40 additions and 0 deletions
|
@ -180,6 +180,17 @@ APPKIT_EXPORT NSString *GSScreenNumber;
|
|||
|
||||
@end
|
||||
|
||||
// Testplant-MAL-10042016: support for checking running services i.e. bonjour
|
||||
/* ----------------------------------------------------------------------- */
|
||||
/* GNUstep Window operations */
|
||||
/* ----------------------------------------------------------------------- */
|
||||
@interface GSDisplayServer (ServiceOps)
|
||||
- (BOOL) isServiceInstalled: (NSString*)serviceName;
|
||||
- (BOOL) isServiceRunning: (NSString*)serviceName;
|
||||
- (BOOL) isDiscoveryServiceInstalled;
|
||||
- (BOOL) isDiscoveryServiceRunning;
|
||||
@end
|
||||
|
||||
/* ----------------------------------------------------------------------- */
|
||||
/* GNUstep Event Operations */
|
||||
/* ----------------------------------------------------------------------- */
|
||||
|
|
|
@ -952,6 +952,35 @@ GSCurrentServer(void)
|
|||
|
||||
@end
|
||||
|
||||
/* ----------------------------------------------------------------------- */
|
||||
/* GNUstep Service Operations */
|
||||
/* ----------------------------------------------------------------------- */
|
||||
@implementation GSDisplayServer (ServiceOps)
|
||||
- (BOOL) isServiceInstalled: (NSString*)serviceName
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
return NO;
|
||||
}
|
||||
|
||||
- (BOOL) isServiceRunning: (NSString*)serviceName
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
return NO;
|
||||
}
|
||||
|
||||
- (BOOL) isDiscoveryServiceInstalled
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
return NO;
|
||||
}
|
||||
|
||||
- (BOOL) isDiscoveryServiceRunning
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
return NO;
|
||||
}
|
||||
@end
|
||||
|
||||
/* ----------------------------------------------------------------------- */
|
||||
/* GNUstep Event Operations */
|
||||
/* ----------------------------------------------------------------------- */
|
||||
|
|
Loading…
Reference in a new issue