mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 02:11:04 +02:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user