mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
CFile: add filetypes for install and update packages
This commit is contained in:
@@ -42,20 +42,20 @@
|
|||||||
/* ATTENTION: the array file_extension_list MUST BE SORTED ASCENDING (cf. sort, man bsearch) - otherwise bsearch will not work correctly! */
|
/* ATTENTION: the array file_extension_list MUST BE SORTED ASCENDING (cf. sort, man bsearch) - otherwise bsearch will not work correctly! */
|
||||||
const char * const file_extension_list[] =
|
const char * const file_extension_list[] =
|
||||||
{
|
{
|
||||||
"aac", "asf", "avi", "bmp", "cdr", "crw",
|
"aac", "asf", "avi", "bin", "bmp", "cdr", "crw",
|
||||||
"dts", "flac", "flv", "gif", "imu", "iso", "jpeg", "jpg",
|
"dts", "flac", "flv", "gif", "imu", "ipk", "iso", "jpeg", "jpg",
|
||||||
"m2a", "m3u", "m3u8", "m4a", "mkv", "mp2", "mp3",
|
"m2a", "m3u", "m3u8", "m4a", "mkv", "mp2", "mp3",
|
||||||
"mpa", "ogg", "pls", "png", "sh",
|
"mpa", "ogg", "opk", "pls", "png", "sh",
|
||||||
"txt", "url", "wav", "xml"
|
"txt", "url", "wav", "xml"
|
||||||
};
|
};
|
||||||
/* ATTENTION: the array file_extension_list MUST BE SORTED ASCENDING (cf. sort, man bsearch) - otherwise bsearch will not work correctly! */
|
/* ATTENTION: the array file_extension_list MUST BE SORTED ASCENDING (cf. sort, man bsearch) - otherwise bsearch will not work correctly! */
|
||||||
|
|
||||||
const CFile::FileType file_type_list[] =
|
const CFile::FileType file_type_list[] =
|
||||||
{
|
{
|
||||||
CFile::FILE_AAC , CFile::FILE_ASF , CFile::FILE_AVI , CFile::FILE_PICTURE , CFile::FILE_CDR , CFile::FILE_PICTURE ,
|
CFile::FILE_AAC , CFile::FILE_ASF , CFile::FILE_AVI , CFile::FILE_BIN_PACKAGE ,CFile::FILE_PICTURE , CFile::FILE_CDR , CFile::FILE_PICTURE ,
|
||||||
CFile::FILE_WAV , CFile::FILE_FLAC , CFile::FILE_FLV , CFile::FILE_PICTURE , CFile::STREAM_PICTURE, CFile::FILE_ISO , CFile::FILE_PICTURE , CFile::FILE_PICTURE ,
|
CFile::FILE_WAV , CFile::FILE_FLAC , CFile::FILE_FLV , CFile::FILE_PICTURE , CFile::STREAM_PICTURE , CFile::FILE_PKG_PACKAGE ,CFile::FILE_ISO , CFile::FILE_PICTURE , CFile::FILE_PICTURE ,
|
||||||
CFile::FILE_MP3 , CFile::FILE_PLAYLIST , CFile::FILE_PLAYLIST , CFile::FILE_AAC , CFile::FILE_MKV , CFile::FILE_MP3 , CFile::FILE_MP3 ,
|
CFile::FILE_MP3 , CFile::FILE_PLAYLIST , CFile::FILE_PLAYLIST , CFile::FILE_AAC , CFile::FILE_MKV , CFile::FILE_MP3 , CFile::FILE_MP3 ,
|
||||||
CFile::FILE_MP3 , CFile::FILE_OGG , CFile::FILE_PLAYLIST , CFile::FILE_PICTURE , CFile::FILE_TEXT ,
|
CFile::FILE_MP3 , CFile::FILE_OGG , CFile::FILE_PKG_PACKAGE, CFile::FILE_PLAYLIST , CFile::FILE_PICTURE , CFile::FILE_TEXT ,
|
||||||
CFile::FILE_TEXT , CFile::STREAM_AUDIO , CFile::FILE_WAV , CFile::FILE_XML
|
CFile::FILE_TEXT , CFile::STREAM_AUDIO , CFile::FILE_WAV , CFile::FILE_XML
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -71,7 +71,9 @@ class CFile
|
|||||||
FILE_PLAYLIST,
|
FILE_PLAYLIST,
|
||||||
STREAM_AUDIO,
|
STREAM_AUDIO,
|
||||||
FILE_PICTURE,
|
FILE_PICTURE,
|
||||||
STREAM_PICTURE
|
STREAM_PICTURE,
|
||||||
|
FILE_BIN_PACKAGE,
|
||||||
|
FILE_PKG_PACKAGE
|
||||||
};
|
};
|
||||||
|
|
||||||
FileType getType(void) const;
|
FileType getType(void) const;
|
||||||
|
@@ -429,11 +429,11 @@ int COPKGManager::showMenu()
|
|||||||
*/
|
*/
|
||||||
//restart neutrino: user decision
|
//restart neutrino: user decision
|
||||||
if(!access( "/tmp/.restart", F_OK)){
|
if(!access( "/tmp/.restart", F_OK)){
|
||||||
int msg = ShowMsg(LOCALE_OPKG_TITLE, g_Locale->getText(LOCALE_OPKG_SUCCESS_INSTALL), CMsgBox::mbrNo,
|
int msg = ShowMsg(LOCALE_OPKG_TITLE, g_Locale->getText(LOCALE_OPKG_SUCCESS_INSTALL), CMessageBox::mbrNo,
|
||||||
CMsgBox::mbYesNo,
|
CMessageBox::mbYes | CMessageBox::mbNo,
|
||||||
NEUTRINO_ICON_QUESTION,
|
NEUTRINO_ICON_QUESTION,
|
||||||
width);
|
width);
|
||||||
if (msg == CMsgBox::mbrYes)
|
if (msg == CMessageBox::mbrYes)
|
||||||
exit_action = "restart";
|
exit_action = "restart";
|
||||||
}
|
}
|
||||||
//restart neutrino: forced
|
//restart neutrino: forced
|
||||||
|
Reference in New Issue
Block a user