OSDN Git Service

見対応のエラーメッセージ対応
[nlite/nlite.git] / nlib / nlib.h
index 9ddce9a..20b8444 100644 (file)
@@ -6,9 +6,8 @@
 
 #include <Windows.h>
 #include <qwerty\qwerty_common.h>
-#include <winhttp.h>
 #include <shareCookie\browserType.h>
-
+#include <winhttp.h>
 #include "nlib_define.h"
 
 #ifdef NLIB_EXPORTS
@@ -186,13 +185,57 @@ typedef struct{
 
 }NicoLiveHeartBeat,*NicoLiveHeartBeat_P;
 
+namespace nlib{
+
+
+///
+///nlib\97á\8aO\8f\88\97\9d\83N\83\89\83X
+///
+class Exception:public std::exception{
+               
+private:
+       std::wstring  wErrMessage;
+       UINT_PTR line;
+       std::wstring fileName;
+       std::wstring function;
+
+               
+public:
+       ///
+       ///\83R\83\93\83X\83g\83\89\83N\83^
+       ///
+       Exception();
+       Exception(const char* const& errMessage);
+       Exception(const wchar_t * const & errMessage,UINT_PTR in_line,LPCTSTR in_fileName,LPCTSTR in_function);
+               
+               
+       ///
+       ///\83G\83\89\81[\95\8c¾\8eæ\93¾
+       ///
+       LPCTSTR what();
 
 
+       ///
+       ///\83G\83\89\81[\94­\90\8ds\8eæ\93¾
+       ///
+       UINT_PTR getLineNo();
+
+       ///
+       ///\83G\83\89\81[\94­\90\83t\83@\83C\83\8b\96¼\8eæ\93¾
+       ///
+       LPCTSTR getFileName();
+
+
+       ///
+       ///\83G\83\89\81[\94­\90\8aÖ\90\94\96¼\82ð\8eæ\93¾
+       ///
+       LPCTSTR getFunctionName();
+
+};
+}
+
 
 
-#ifdef __cplusplus
-extern "C" {
-#endif
 
        
        ///
@@ -308,6 +351,12 @@ extern "C" {
        ///
        NLIB_DECLSPEC NLIB_RESULT NicoLiveStream_sendChat(NicoLiveStream_P self,LPCTSTR chatbuf,LPCTSTR *mail,LPCTSTR *extends);
 
+
+       ///
+       ///\90\8eå\83R\83\81\83\93\83g\91\97\90M
+       ///
+       NLIB_DECLSPEC NLIB_RESULT NicoLiveStream_sendOwnerChat(NicoLiveStream_P self,LPCTSTR chatbuf,LPCTSTR *mail,LPCTSTR *extends);
+
        ///
        ///\83n\81[\83g\83r\81[\83g\91\97\90M
        ///
@@ -391,6 +440,11 @@ extern "C" {
 
 
        ///
+       ///\83\86\81[\83U\81[\83Z\83b\83V\83\87\83\93\8eæ\93¾
+       ///
+       NLIB_DECLSPEC LPCTSTR NicoVideoAuth_getUserSession(NicoVideoAuth_P self);
+
+       ///
        ///\83j\83R\83j\83R\93®\89æ\94F\8fØ\8fî\95ñ\8eæ\93¾
        ///
        NLIB_DECLSPEC NLIB_RESULT NicoVideoAuth_getNicoVideoAuth(NicoVideoAuth_P self,BROWSERTYPE browserType);
@@ -426,10 +480,6 @@ extern "C" {
 
 
 
-#ifdef __cplusplus
-}
-#endif
-
 
 
 #pragma comment(lib,"Wininet.lib")
@@ -439,7 +489,6 @@ extern "C" {
 #pragma comment(lib, "shell32.lib" )
 #pragma comment(lib,"expat.lib")
 #pragma comment(lib,"sqlite3.lib")
-#pragma comment(lib,"sqliteManager.lib")
 #pragma comment(lib,"shareCookie.lib")
 #pragma comment(lib,"winmm.lib")
 #pragma comment(lib,"JSONParser.lib")