OSDN Git Service

TPIHandleの各関数の返し値をboolにし、エラーコードをnErrorCodeに記録するよう変更。
[tpi/lychee.git] / src / common / handle / TPIHandle.h
index e27a339..51892bb 100644 (file)
 class TPIHandle
 {
        public:
+               TPIHandle(void);
                ~TPIHandle(void);
-               int GetPluginInformation(unsigned int, wxULongLong, void *);
                bool InitLibrary(const wxString &, const wxString &, wxULongLong);
                bool FreeLibrary(void);
 
-               int CheckArchive(const wxString &, int *);
-               int OpenArchive(const wxString &);
-               int CloseArchive(void);
-               int GetFileInformation(TPI_FILEINFO *, bool);
-               int GetArchiveInformation(TPI_ARCHIVEINFO *);
+               bool GetPluginInformation(unsigned int, wxULongLong, void *);
+               bool GetFormatInformation(TPI_FORMATINFO *, bool);
 
-               int Command(unsigned int, TPI_SWITCHES *, const wxString &, const wxArrayString &);
+               bool CheckArchive(const wxString &, int *);
+               bool OpenArchive(const wxString &);
+               bool CloseArchive(void);
+               bool GetFileInformation(TPI_FILEINFO *, bool);
+               bool GetArchiveInformation(TPI_ARCHIVEINFO *);
+
+               bool Command(unsigned int, TPI_SWITCHES *, const wxString &, const wxArrayString &);
+
+               bool SetCallbackProc(TPI_PROC);
+
+               int nErrorCode;
 
-               int SetCallbackProc(TPI_PROC);
        private:
                wxDynamicLibrary lib;
                void * archive;