namespace nlite{
+ //\91O\95û\90é\8c¾
+ class CNicoLiveStream;
+
+ ///
+ ///\90¶\95ú\91\97\83X\83e\81[\83^\83X\83N\83\89\83X
+ ///
class CStreamStatus{
public:
- CNLiteString id;
- CNLiteString default_community;
- PROVIDERTYPE provider_type;
- BOOL is_owner;
- time_t start_time;
- time_t end_time;
- time_t open_time;
- time_t base_time;
+ CNLiteString title; //\95ú\91\97\83^\83C\83g\83\8b
+ CNLiteString id; //\95ú\91\97ID
+ CNLiteString default_community; //\83R\83~\83\85\83j\83e\83BID
+ PROVIDERTYPE provider_type; //\95ú\91\97\82ª\83R\83~\83\85\83j\83e\83B\81E\83`\83\83\83\93\83l\83\8b\81E\8cö\8e®\82Ì\94»\92è
+ BOOL is_owner; //\90Ú\91±\82µ\82½\95ú\91\97\82Ì\95ú\91\97\8eå\82ª\8e©\95ª\82©\82Ì\83t\83\89\83O
+ time_t start_time; //\95ú\91\97\8aJ\8en\8e\9e\8aÔ
+ time_t end_time; //\95ú\91\97\8fI\97¹\8e\9e\8aÔ
+ time_t open_time; //\8aJ\8fê\8e\9e\8aÔ
+ time_t base_time; //\95s\96¾\81A\95ú\91\97\8aJ\8en\8e\9e\8aÔ\81H
public:
+
+ ///
+ ///\83R\83\93\83X\83g\83\89\83N\83^
+ ///
CStreamStatus();
+
+ ///
+ ///\8f\89\8aú\89»\8aÖ\90\94
+ ///
VOID Initalize();
+
+ ///
+ ///nlib\82©\82ç\93n\82³\82ê\82½\95ú\91\97\83f\81[\83^\82ð\83Z\83b\83g\82·\82é
+ ///
VOID SetStreamStatus(StreamStatus_P streamStatus);
};
- class CNicoVideoAuth{
+ ///
+ ///\83j\83R\83j\83R\93®\89æ\94F\8fØ\83I\83u\83W\83F\83N\83g
+ ///
+ class CNicoVideoAuth{
+ friend CNicoLiveStream;
private:
- NicoVideoAuth_P nicoVideoAuth;
+ NicoVideoAuth_P nicoVideoAuth; //\93à\95\94\83f\81[\83^
public:
+ ///
+ ///\83R\83\93\83X\83g\83\89\83N\83^
+ ///
CNicoVideoAuth();
+ ///
+ ///\83f\83X\83g\83\89\83N\83^
+ ///
~CNicoVideoAuth();
+ ///
+ ///\83u\83\89\83E\83U\83^\83C\83v\82ð\83Z\83b\83g
+ ///
VOID SetBrowserType(BROWSERTYPE bt);
+
+ private:
+ ///
+ ///\93à\95\94\83f\81[\83^\82ð\8eæ\93¾
+ ///
NicoVideoAuth_P GetAuth();
};
- class CNicoLiveStream;
+
+
+
+ ///
+ ///\83`\83\83\83b\83g\8f\91\82«\8d\9e\82Ý\83f\81[\83^\8dì\90¬\83N\83\89\83X
+ ///
class CCommentMaker{
- friend CNicoLiveStream;
+ friend CNicoLiveStream; //\83t\83\8c\83\93\83h\90é\8c¾
+
private:
- CNLiteString chatString;
- std::deque<CNLiteString> mailsBuffer;
- std::deque<CNLiteString> exAttributeBuffer;
- std::vector<LPCTSTR> mails;
- std::vector<LPCTSTR> exAttribute;
+ CNLiteString chatString; //\83`\83\83\83b\83g\96{\95¶
+ std::deque<CNLiteString> mailsBuffer; //mail\83R\83}\83\93\83h\83f\81[\83^\8ai\94[\97p\83o\83b\83t\83@
+ std::deque<CNLiteString> exAttributeBuffer; //\8ag\92£\83R\83}\83\93\83h\8ai\94[\97p\83o\83b\83t\83@
+ std::vector<LPCTSTR> mails; //mail\83R\83}\83\93\83h\83\8a\83X\83g
+ std::vector<LPCTSTR> exAttribute; //\8ag\92£\83R\83}\83\93\83h\83\8a\83X\83g
public:
+
+ ///
+ ///\83`\83\83\83b\83g\96{\95¶\8ai\94[
+ ///
BOOL SetChatString(LPCTSTR chatString);
+
+ ///
+ ///mail\83R\83}\83\93\83h\92Ç\89Á
+ ///
BOOL AddMail(LPCTSTR mail);
+ ///
+ ///\8ag\92£\83R\83}\83\93\83h\92Ç\89Á
+ ///
BOOL AddExAttribute(LPCTSTR name,LPCTSTR value);
};
+ ///
+ ///\83j\83R\83j\83R\90¶\95ú\91\97\83N\83\89\83X
+ ///
class CNicoLiveStream{
private:
- NicoLiveStream_P nicoLiveStream;
+ NicoLiveStream_P nicoLiveStream; //\93à\95\94\83f\81[\83^
public:
+
+ ///
+ ///\83R\83\93\83X\83g\83\89\83N\83^
+ ///
CNicoLiveStream();
-
+ ///
+ ///\83f\83X\83g\83\89\83N\83^
+ ///
~CNicoLiveStream();
+
+ ///
+ ///\90Ú\91±\8e\9e\82Ì\83R\83\81\83\93\83g\8eó\90M\90\94\82ð\90Ý\92è
+ ///
VOID SetResFrom(INT_PTR res_from);
+
+ ///
+ ///\8c»\8dÝ\90Ý\92è\82µ\82Ä\82 \82é\83R\83\81\83\93\83g\8eó\90M\90\94\82ð\8eæ\93¾
+ ///
+ INT_PTR GetResFrom();
+
+ ///
+ ///\83n\81[\83g\83r\81[\83g\8aÔ\8au\82ð\83~\83\8a\95b\92P\88Ê\82Å\90Ý\92è
+ ///
+ VOID SetHeartBeatMsec(DWORD msec);
+
+ ///
+ ///\83n\81[\83g\83r\81[\83g\8aÔ\8au\82ð\83~\83\8a\95b\92P\88Ê\82Å\8eæ\93¾
+ ///
+ DWORD GetHeartBeatMsec();
+
+ ///
+ ///\83n\81[\83g\83r\81[\83g\82Ì\97L\8cø\96³\8cø\90Ý\92è
+ ///
+ VOID SetHeartBeatFlag(BOOL flag);
+
+
+ ///
+ ///\83n\81[\83g\83r\81[\83g\82ª\97L\8cø\82©\92²\82×\82é
+ ///
+ BOOL GetHeartBeatFlag();
+
+ ///
+ ///\83L\81[\83v\83A\83\89\83C\83u\82Ì\8aÔ\8au\82ð\90Ý\92è
+ ///
+ VOID SetKeapALiveMsec(DWORD msec);
+
+
+ ///
+ ///\8c»\8dÝ\90Ý\92è\82µ\82Ä\82 \82é\83L\81[\83v\83A\83\89\83C\83u\82Ì\8aÔ\8au\82ð\8eæ\93¾
+ ///
+ DWORD GetKeapALiveMsec();
+
+ ///
+ ///\83L\81[\83v\83A\83\89\83C\83u\97L\8cø\96³\8cø\90Ý\92è
+ ///
+ VOID SetKeapAliveFlag(BOOL flag);
+
+ ///
+ ///\83L\81[\83v\83A\83\89\83C\83u\82ª\97L\8cø\82©\94»\92è\82·\82é
+ ///
+ BOOL GetKeapAliveFlag();
+
+
+ ///
+ ///\90¶\95ú\91\97\82É\90Ú\91±
+ ///
NLIB_RESULT Connect(CNicoVideoAuth &nicoVideoAuth,LPCTSTR url,NicoRecvCallBack callback,LPVOID userData);
+ ///
+ ///\95ú\91\97\90Ø\92f
+ ///
VOID DisConnect();
-
+ ///
+ ///\83`\83\83\83b\83g\91\97\90M
+ ///
NLIB_RESULT SendChat(CCommentMaker &commentMaker);
+
+ ///
+ ///\83n\81[\83g\83r\81[\83g\91\97\90M
+ ///
+ NLIB_RESULT SendHeartBeat();
};