Files
MacPass/MacPass/MPRequestHandlerService.h
michael starke 09263b4559 Approprate naming for service protocol
Minor code cleanup
2013-10-20 19:38:57 +02:00

30 lines
831 B
Objective-C

//
// MPRequestHandlerService.h
// MacPass
//
// Created by Michael Starke on 17.06.13.
// Copyright (c) 2013 HicknHack Software GmbH. All rights reserved.
//
#import <Foundation/Foundation.h>
@protocol MPServerRequestHandling;
FOUNDATION_EXPORT NSString *const MPRequestTypeGetLogins;
FOUNDATION_EXPORT NSString *const MPRequestTypeGetLoginsCount;
FOUNDATION_EXPORT NSString *const MPRequestTypeGetAllLogins;
FOUNDATION_EXPORT NSString *const MPRequestTypeSetLogin;
FOUNDATION_EXPORT NSString *const MPRequestTypeGeneratePassword;
/**
* Servive class to be called for getting specific request handler for indifidual reuqest
* The service is identified by a string
*/
@interface MPRequestHandlerService : NSObject
+ (id<MPServerRequestHandling>)requestHandler:(NSString *)identifier;
+ (BOOL)validKeyProposal;
@end