moviebrowser settings: move storage settings into own struct

For planned usage with user interaction.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 78430789de
Author: Thilo Graf <dbt@novatux.de>
Date: 2019-05-09 (Thu, 09 May 2019)



------------------
This commit was generated by Migit
This commit is contained in:
2019-05-09 00:05:58 +02:00
committed by vanhofen
parent 90364f9ab1
commit f5d882dda2
2 changed files with 43 additions and 29 deletions

View File

@@ -69,7 +69,16 @@
#define MB_MAX_ROWS LF_MAX_ROWS
#define MB_MAX_DIRS NETWORK_NFS_NR_OF_ENTRIES
/* MB_SETTINGS to be stored in g_settings anytime ....*/
struct MBStorageSettings
{
std::string storageDir[MB_MAX_DIRS];
int storageDirUsed[MB_MAX_DIRS];
int storageDirRecUsed;
int storageDirMovieUsed;
};
typedef struct
{
// moviebrowser
@@ -79,10 +88,7 @@ typedef struct
MI_PARENTAL_LOCKAGE parentalLockAge ;//MI_PARENTAL_LOCKAGE
MB_PARENTAL_LOCK parentalLock;//MB_PARENTAL_LOCK
std::string storageDir[MB_MAX_DIRS];
int storageDirUsed[MB_MAX_DIRS];
int storageDirRecUsed;
int storageDirMovieUsed;
MBStorageSettings store;
int reload;
int remount;
@@ -124,6 +130,7 @@ typedef struct
std::list<std::string> ytsearch_history;
} MB_SETTINGS;
class CMovieBrowser;
class CYTCacheSelectorTarget : public CMenuTarget
@@ -282,6 +289,7 @@ class CMovieBrowser : public CMenuTarget, public CProgressSignals
///// MovieBrowser init ///////////////
void init(void); //P1
void initGlobalSettings(void); //P1
void initGlobalStorageSettings(void);
void initFrames(void);
void initRows(void);
void reinit(void); //P1