Session.h
Go to the documentation of this file.
/*
* Copyright (c) 2021 Taner Sener
*
* This file is part of FFmpegKit.
*
* FFmpegKit is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* FFmpegKit is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General License for more details.
*
* You should have received a copy of the GNU Lesser General License
* along with FFmpegKit. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef FFMPEG_KIT_SESSION_H
#define FFMPEG_KIT_SESSION_H
#import <Foundation/Foundation.h>
#import "ExecuteCallback.h"
#import "Log.h"
#import "LogCallback.h"
#import "LogRedirectionStrategy.h"
#import "ReturnCode.h"
#import "SessionState.h"
@protocol Session
@required
- (ExecuteCallback)getExecuteCallback;
- (LogCallback)getLogCallback;
- (long)getSessionId;
- (NSDate*)getCreateTime;
- (NSDate*)getStartTime;
- (NSDate*)getEndTime;
- (long)getDuration;
- (NSArray*)getArguments;
- (NSString*)getCommand;
- (NSArray*)getAllLogsWithTimeout:(int)waitTimeout;
- (NSArray*)getAllLogs;
- (NSArray*)getLogs;
- (NSString*)getAllLogsAsStringWithTimeout:(int)waitTimeout;
- (NSString*)getAllLogsAsString;
- (NSString*)getLogsAsString;
- (NSString*)getOutput;
- (SessionState)getState;
- (ReturnCode*)getReturnCode;
- (NSString*)getFailStackTrace;
- (LogRedirectionStrategy)getLogRedirectionStrategy;
- (BOOL)thereAreAsynchronousMessagesInTransmit;
- (void)addLog:(Log*)log;
- (void)startRunning;
- (void)complete:(ReturnCode*)returnCode;
- (void)fail:(NSException*)exception;
- (BOOL)isFFmpeg;
- (BOOL)isFFprobe;
- (void)cancel;
@end
#endif // FFMPEG_KIT_SESSION_H
ExecuteCallback.h
ExecuteCallback
void(^ ExecuteCallback)(id< Session > session)
Definition: ExecuteCallback.h:46
Log.h
LogCallback.h
LogCallback
void(^ LogCallback)(Log *log)
Definition: LogCallback.h:31
LogRedirectionStrategy.h
ReturnCode.h
SessionState.h
Log
Definition: Log.h:29
ReturnCode
Definition: ReturnCode.h:31
Session-p
Definition: Session.h:34
-[Session-p getSessionId]
long getSessionId()
-[Session-p getState]
SessionState getState()
-[Session-p getExecuteCallback]
ExecuteCallback getExecuteCallback()
-[Session-p thereAreAsynchronousMessagesInTransmit]
BOOL thereAreAsynchronousMessagesInTransmit()
-[Session-p getCreateTime]
NSDate * getCreateTime()
-[Session-p getFailStackTrace]
NSString * getFailStackTrace()
-[Session-p getAllLogs]
NSArray * getAllLogs()
-[Session-p cancel]
void cancel()
-[Session-p getLogsAsString]
NSString * getLogsAsString()
-[Session-p getLogRedirectionStrategy]
LogRedirectionStrategy getLogRedirectionStrategy()
-[Session-p startRunning]
void startRunning()
-[Session-p getAllLogsAsString]
NSString * getAllLogsAsString()
-[Session-p getLogs]
NSArray * getLogs()
-[Session-p getDuration]
long getDuration()
-[Session-p getEndTime]
NSDate * getEndTime()
-[Session-p getStartTime]
NSDate * getStartTime()
-[Session-p getOutput]
NSString * getOutput()
-[Session-p getLogCallback]
LogCallback getLogCallback()
-[Session-p getArguments]
NSArray * getArguments()
-[Session-p getCommand]
NSString * getCommand()
-[Session-p isFFprobe]
BOOL isFFprobe()
-[Session-p isFFmpeg]
BOOL isFFmpeg()
-[Session-p getReturnCode]
ReturnCode * getReturnCode()