//
//  KMThreadDeleter.h
//  BathyScaphe
//
//  Created by 堀 昌樹 on 12/03/18.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "KMLogDocumentWindowController.h"

@protocol KMThreadDeleteCenterDelegate;

@interface KMThreadDeleteCenter : NSObject
#if !__LP64__
{
	id<KMThreadDeleteCenterDelegate> _delegate;
}
#endif

@property (assign)  id<KMThreadDeleteCenterDelegate> delegate;

// Copy from CMRThreadviewer-DelAndRetrieve.m
enum {
    CMRThreadViewerDeletionAlertType = 1,
    CMRThreadViewerRetrieveAlertType = 2,
};
typedef NSUInteger CMRThreadViewerAlertType;
// threads is NSArray of CMRThreadAttributes.
// TODO: いきなりは無理なので現状 NSArray of NSDictionaryも受け付ける
- (void)showAlert:(CMRThreadViewerAlertType)type targetThreads:(NSArray *)threads;

@end

@protocol KMThreadDeleteCenterDelegate <NSObject>
- (NSWindow *)window;

@optional
- (void)deleteCenter:(KMThreadDeleteCenter *)center retrieveThreads:(NSArray *)threads;
@end