Artifact 6cb90051bc1415324326d12b19fc7d0ff34cb22e
1 // NoahApp.h
2 //-- CNoahApp -- application object of 'Noah' --
3
4 #ifndef AFX_NOAHAPP_H__11AA6C03_4946_4279_B79C_F28896001357__INCLUDED_
5 #define AFX_NOAHAPP_H__11AA6C03_4946_4279_B79C_F28896001357__INCLUDED_
6
7 #include "NoahAM.h"
8 #include "NoahCM.h"
9
10 class CNoahApp : public kiApp
11 {
12 public: //-- 外向けインターフェイス ------
13
14 //-- 圧縮/解凍作業
15 void do_cmdline( bool directcall=false );
16 void do_files( const cCharArray& files,
17 const cCharArray* opts=NULL,
18 bool basicaly_ignore=false );
19
20 //-- 雑用(笑)
21 void open_folder( const kiPath& path,int from=0 );
22 void get_tempdir( kiPath& tmp );
23 bool is_writable_dir( const kiPath& path );
24
25 //-- Noahオブジェクト取得用マクロ
26 # define myapp() (*(CNoahApp*)app())
27 # define myarc() (*(((CNoahApp*)app())->arc()))
28 # define mycnf() (*(((CNoahApp*)app())->cnf()))
29
30 public: //-- 内部処理 --------------------
31
32 CNoahArchiverManager* arc(){ return &m_arcMan; }
33 CNoahConfigManager* cnf() { return &m_cnfMan; }
34 private:
35 void run( kiCmdParser& cmd );
36
37 CNoahArchiverManager m_arcMan;
38 CNoahConfigManager m_cnfMan;
39 kiCmdParser* m_pCmd;
40
41 kiPath m_tmpDir;
42 UINT m_tmpID;
43 };
44
45 #endif