//
//  BSDBThreadsListDBUpdateTask2.h
//  BathyScaphe
//
//  Created by Hori,Masaki on 06/08/06.
//  Copyright 2006-2011 BathyScaphe Project. All rights reserved.
//  encoding="UTF-8"
//

#import <Cocoa/Cocoa.h>

#import "CMRTask.h"
#import "CMXWorkerContext.h"

@interface BSDBThreadsListDBUpdateTask2 : NSObject<CMXRunnable> {
	NSString *bbsName;
	NSData *subjectData;
	NSNumber *boardID;

	BOOL isInterrupted;
	BOOL isRebuilding;
    BOOL isLivedoor;

    NSError *lastError;
}

//+ (id)taskWithBBSName:(NSString *)name data:(NSData *)data;
//- (id)initWithBBSName:(NSString *)name data:(NSData *)data;

+ (id)taskWithBBSName:(NSString *)name data:(NSData *)data livedoor:(BOOL)isLivedoorFlag rebuilding:(BOOL)isRebuildingFlag;


- (void)setBBSName:(NSString *)name;

- (BOOL)isRebuilding;
//- (void)setRebuilding:(BOOL)flag;

- (BOOL)isLivedoor;
//- (void)setLivedoor:(BOOL)flag;

- (NSError *)lastErrorWhileRebuilding;
@end

/*
@interface BSDBThreadsListDBUpdateTask2(TaskNotification)
- (void)postNotificationWithName:(NSString *)name;
@end

extern NSString *const BSDBThreadsListDBUpdateTask2DidFinishNotification;
*/
