Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

61 lines (56 sloc) 2.462 kb
//
// ExportWindowController.h
// MongoHub
//
// Created by Syd on 10-6-22.
// Copyright 2010 ThePeppersStudio.COM. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <mongo/client/dbclient.h>
@class Connection;
@class DatabasesArrayController;
@class MCPConnection;
@class MongoDB;
@class FieldMapTableController;
@interface ExportWindowController : NSWindowController {
NSManagedObjectContext *managedObjectContext;
DatabasesArrayController *databasesArrayController;
NSString *dbname;
Connection *conn;
MongoDB *mongoDB;
MCPConnection *db;
IBOutlet NSArrayController *dbsArrayController;
IBOutlet NSArrayController *tablesArrayController;
IBOutlet NSTextField *hostTextField;
IBOutlet NSTextField *portTextField;
IBOutlet NSTextField *userTextField;
IBOutlet NSSecureTextField *passwdTextField;
IBOutlet NSTextField *collectionTextField;
IBOutlet NSProgressIndicator *progressIndicator;
IBOutlet NSPopUpButton *tablesPopUpButton;
IBOutlet FieldMapTableController *fieldMapTableController;
}
@property (nonatomic, retain) Connection *conn;
@property (nonatomic, retain) MCPConnection *db;
@property (nonatomic, retain) MongoDB *mongoDB;
@property (nonatomic, retain) DatabasesArrayController *databasesArrayController;
@property (nonatomic, retain) NSManagedObjectContext *managedObjectContext;
@property (nonatomic, retain) NSString *dbname;
@property (nonatomic, retain) NSArrayController *dbsArrayController;
@property (nonatomic, retain) NSArrayController *tablesArrayController;
@property (nonatomic, retain) NSTextField *hostTextField;
@property (nonatomic, retain) NSTextField *portTextField;
@property (nonatomic, retain) NSTextField *userTextField;
@property (nonatomic, retain) NSSecureTextField *passwdTextField;
@property (nonatomic, retain) NSTextField *collectionTextField;
@property (nonatomic, retain) NSProgressIndicator *progressIndicator;
@property (nonatomic, retain) NSPopUpButton *tablesPopUpButton;
@property (nonatomic, retain) FieldMapTableController *fieldMapTableController;
- (void)initInterface;
- (IBAction)connect:(id)sender;
- (IBAction)export:(id)sender;
- (IBAction)showTables:(id)sender;
- (IBAction)showFields:(id)sender;
- (long long int)exportCount:(NSString *)collection user:(NSString *)user password:(NSString *)password;
- (void)doExportToTable:(NSString *)tableName data:(mongo::BSONObj) bsonObj fieldTypes:(NSDictionary *)fieldTypes;
@end
Jump to Line
Something went wrong with that request. Please try again.