Ignore:
Timestamp:
Jul 24, 2018 4:26:40 PM (2 years ago)
Author:
meeh <meeh@…>
Branches:
master
Children:
7338282b
Parents:
2ee1a21
Message:

Code changes:

  • Port check to see if i2p is already running.
  • All buttons in the menu should work now.
  • Rewrote some C++ to Objective-C, which fits better with the integration.
  • Misc cleanup.
  • Made the launch of router repeatable.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • launchers/macosx/obj-cpp/RouterTask.h

    r2ee1a21 rf9fbc76  
    1515
    1616@class RTaskOptions;
    17 
    1817@interface RTaskOptions : NSObject
    1918@property (strong) NSString* binPath;
     
    2221@end
    2322
    24 @class RouterTask;
    25 
    26 @interface RouterTask : NSObject
     23@class I2PRouterTask;
     24@interface I2PRouterTask : NSObject
    2725@property (strong) NSTask* routerTask;
    2826@property (strong) NSUserDefaults *userPreferences;
     
    3129@property (strong) NSPipe *processPipe;
    3230@property (strong) NSFileHandle *input;
     31@property (atomic) BOOL isRouterRunning;
    3332@property (atomic) BOOL userRequestedRestart;
    3433- (instancetype) initWithOptions : (RTaskOptions*) options;
     
    3837- (BOOL) isRunning;
    3938- (int) getPID;
     39- (void)routerStdoutData:(NSNotification *)notification;
    4040@end
    4141
     
    4848typedef std::function<void(void)> fp_t;
    4949typedef std::function<void(JavaRunner *ptr)> fp_proc_t;
     50
     51
    5052
    5153/**
Note: See TracChangeset for help on using the changeset viewer.