Remove global c_SMSKeyInput

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1915 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Branch: ni/coolstream
Commit: a73ea424b9
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2011-11-26 (Sat, 26 Nov 2011)



------------------
This commit was generated by Migit
This commit is contained in:
[CST] Focus
2011-11-26 11:28:17 +00:00
parent 8b9213ab16
commit 9f05f75a4b
2 changed files with 4 additions and 6 deletions

View File

@@ -70,7 +70,6 @@
extern CBouquetList * bouquetList; /* neutrino.cpp */
extern CRemoteControl * g_RemoteControl; /* neutrino.cpp */
extern SMSKeyInput * c_SMSKeyInput;
extern CPictureViewer * g_PicViewer;
extern CBouquetList * TVbouquetList;
extern CBouquetList * TVsatList;
@@ -832,10 +831,11 @@ int CChannelList::show()
}
else if(g_settings.sms_channel) {
unsigned char smsKey = 0;
c_SMSKeyInput->setTimeout(CHANNEL_SMSKEY_TIMEOUT);
SMSKeyInput smsInput;
smsInput.setTimeout(CHANNEL_SMSKEY_TIMEOUT);
do {
smsKey = c_SMSKeyInput->handleMsg(msg);
smsKey = smsInput.handleMsg(msg);
//printf("SMS new key: %c\n", smsKey);
g_RCInput->getMsg_ms(&msg, &data, CHANNEL_SMSKEY_TIMEOUT-100);
} while ((msg >= CRCInput::RC_1) && (msg <= CRCInput::RC_9));
@@ -872,7 +872,7 @@ int CChannelList::show()
showChannelLogo();
}
}
c_SMSKeyInput->resetOldKey();
smsInput.resetOldKey();
}
}
}

View File

@@ -224,7 +224,6 @@ CBouquetList * RADIOallList;
CPlugins * g_PluginList;
CRemoteControl * g_RemoteControl;
SMSKeyInput * c_SMSKeyInput;
CPictureViewer * g_PicViewer;
CCAMMenuHandler * g_CamHandler;
@@ -1849,7 +1848,6 @@ int CNeutrinoApp::run(int argc, char **argv)
dprintf( DEBUG_NORMAL, "menue setup\n");
c_SMSKeyInput = new SMSKeyInput();
//Main settings
CMenuWidget mainMenu (LOCALE_MAINMENU_HEAD , NEUTRINO_ICON_MAINMENU/*, 22*/);
CMenuWidget mainSettings (LOCALE_MAINSETTINGS_HEAD , NEUTRINO_ICON_SETTINGS);