OSDN Git Service

2011/11/23 20:57:55
[nlite/nlite.git] / nlite / nlite_nlib.h
1 #pragma once
2
3 namespace nlite{
4
5
6         class CNicoVideoAuth{
7
8         private:
9                 NicoVideoAuth_P nicoVideoAuth;
10
11
12         public:
13                 CNicoVideoAuth()
14                         :nicoVideoAuth(NicoVideoAuth_new()){}
15
16                 ~CNicoVideoAuth(){
17
18                         NicoVideoAuth_delete(&nicoVideoAuth);
19                 }
20
21                 VOID SetBrowserType(BROWSERTYPE bt){
22                         NLIB_RESULT rslt;
23
24                         rslt = NicoVideoAuth_getNicoVideoAuth(nicoVideoAuth,bt);
25                         if(rslt != NLIB_ERR_OK){
26
27                                 throw NLIBException(rslt);
28                         }
29
30                 }
31
32                 NicoVideoAuth_P GetAuth(){
33
34                         return this->nicoVideoAuth;
35                 }
36
37         };
38 }