Files
MacPass/MacPass/MPActionHelper.h
michael starke 31f456929c Added Template editing.
Creating with templates not supported yet.

Templates are listed in Context-Menu under the AddEntry Toolbar
Toolbar Button is missing an Arrow for now. Control-Size is not working correctly for now
Nested Template or Trash groups aren't considered, this is a bug!
Minor changes to the UI (Settings tabs now use common icons)
Added Workflow-Settings tab to extract all the custom action possible on entries. The copy or open on URL dbl-click setting will move over to this tab.
2013-07-30 20:37:59 +02:00

44 lines
1.4 KiB
Objective-C

//
// MPActionHelper.h
// MacPass
//
// Created by Michael Starke on 09.03.13.
// Copyright (c) 2013 HicknHack Software GmbH. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef NS_ENUM(NSUInteger, MPActionType) {
MPUnkownAction, // Neutral element to be used for returns
MPActionAddEntry, // Add an new entry
MPActionAddGroup, // Add a new group
MPActionDelete, // Delete entry or group
MPActionCopyUsername, // copy username to pasteboard
MPActionCopyPassword, // copy password to pasteboard
MPActionCopyURL, // copy url to pasteboard
MPActionOpenURL, // open url in default browser
MPActionToggleInspector,
MPActionLock, // show the lock screen
MPActionEmptyTrash, // empties the trashcan, if there is one
MPActionDatabaseSettings, // Show the settings for the database
MPActionEditTemplateGroup
};
/**
* Helper to retrieve commonly used actions
*/
@interface MPActionHelper : NSObject
/**
* Call this to retrieve a selector for a common used action
* @param type The action type as MPActionType
* @return selector for this action type
*/
+ (SEL)actionOfType:(MPActionType)type;
/**
* Helper to retrieve the MPActionType for a given selection
* @param action Selector to find the type for
* @return MPActionTpype for action, if no match was found MPUnknownAction is returned
*/
+ (MPActionType)typeForAction:(SEL)action;
@end