MenuTableViewController.h 1.44 KB
//
//  MenuTableViewController.h
//  DUREX Vendor Control
//
//  Created by Imanol Barba on 5/23/14.
//  Copyright (c) 2014 Emmoco. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "EMFramework.h"
#import "CommunicationProtocol.h"
#import "Stack.h"

#define num(x) [NSNumber numberWithUnsignedInt:x]

#define MENU_ELEMENTS                   @"Maintenance",@"Basic Configuration",@"Sending a Report"
#define MENU_CELLS_PER_SECTION          num(3)
#define MENU_HEADERS                        nil

#define MAINTENANCE_ELEMENTS            @"CH1 presence",@"CH2 presence",@"CH3 presence",@"CH4 presence",@"CH5 presence",@"CH6 presence",@"CH7 presence",@"CH8 presence",@"CH1 spin",@"CH2 spin",@"CH3 spin",@"CH4 spin",@"CH5 spin",@"CH6 spin",@"CH7 spin",@"CH8 spin",@"Door sensor",@"Wall sensor",@"Oscillator",@"1€ Coin presence",@"50c Coin presence",@"1€ Coin spin",@"50c Coin spin",@"Sales log",@"Incident report",@"Send report"
#define MAINTENANCE_CELLS_PER_SECTION   num(23),num(3)
#define MAINTENANCE_HEADERS              NSLocalizedString(@"Sensors", nil),NSLocalizedString(@"Commands", nil)

#define CELL_IDENTIFIERS                @"MenuCell",@"MaintenanceCell",@"ConfigCell",@"ReportCell"

#define NUM_CHANNELS                    8

enum {
    MENU = 0,
    MAINTENANCE,
    BASIC_CONFIGURATION,
    REPORT,
} navigationLevel;

@interface MenuTableViewController : UITableViewController

@property (strong,nonatomic) Stack *parentLayout;

- (void) navBack;

@end