Init
This commit is contained in:
@@ -17,10 +17,10 @@ cKodiVideoLibrary::~cKodiVideoLibrary()
|
||||
m_db.close();
|
||||
}
|
||||
|
||||
qint16 cKodiVideoLibrary::connect(const QString& szFileName)
|
||||
qint16 cKodiVideoLibrary::init(const QString& szFileName)
|
||||
{
|
||||
if(m_bConnected)
|
||||
return(true);
|
||||
return(m_iVersion);
|
||||
|
||||
if(!QFile(szFileName).exists())
|
||||
return(-1);
|
||||
@@ -50,3 +50,10 @@ qint16 cKodiVideoLibrary::connect(const QString& szFileName)
|
||||
m_bConnected = true;
|
||||
return(m_iVersion);
|
||||
}
|
||||
|
||||
qint16 cKodiVideoLibrary::version()
|
||||
{
|
||||
if(!m_bConnected)
|
||||
return(-1);
|
||||
return(m_iVersion);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user