ssrf: move functions from mobile-helper to mobile-main

Move few mobile only functions from mobile-helper to mobile-main

remove subsurface-mobile-helper

file structure is now subsurface-*-main.cpp + subsurface-helper.cpp

Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
jan Iversen 2018-07-11 12:54:00 +02:00 committed by Dirk Hohndel
parent 2c402b0fcf
commit fe38a768f2
4 changed files with 19 additions and 45 deletions

View file

@ -115,3 +115,21 @@ int main(int argc, char **argv)
free_prefs();
return 0;
}
void set_non_bt_addresses() {
#if defined(Q_OS_ANDROID)
connectionListModel.addAddress("FTDI");
#elif defined(Q_OS_LINUX) // since this is in the else, it does NOT include Android
connectionListModel.addAddress("/dev/ttyS0");
connectionListModel.addAddress("/dev/ttyS1");
connectionListModel.addAddress("/dev/ttyS2");
connectionListModel.addAddress("/dev/ttyS3");
// this makes debugging so much easier - use the simulator
connectionListModel.addAddress("/tmp/ttyS1");
#endif
}
bool haveFilesOnCommandLine()
{
return false;
}