add engineStopping and engineStarting (stubbed out so far)

This commit is contained in:
Andy2 2010-07-08 07:03:56 -07:00
parent 567d5f4d70
commit 7595b36037
3 changed files with 21 additions and 2 deletions

View file

@ -378,13 +378,17 @@ and_util_getTraySearchLimits(XW_UtilCtxt* uc, XP_U16* min, XP_U16* max )
static void
and_util_engineStarting( XW_UtilCtxt* uc, XP_U16 nBlanks )
{
LOG_FUNC();
UTIL_CBK_HEADER("engineStarting", "(I)V" );
(*env)->CallVoidMethod( env, util->jutil, mid, nBlanks );
UTIL_CBK_TAIL();
}
static void
and_util_engineStopping( XW_UtilCtxt* uc )
{
LOG_FUNC();
UTIL_CBK_HEADER("engineStopping", "()V" );
(*env)->CallVoidMethod( env, util->jutil, mid );
UTIL_CBK_TAIL();
}
#endif

View file

@ -879,6 +879,19 @@ public class BoardActivity extends Activity implements UtilCtxt {
return ! m_jniThread.busy();
}
public void engineStarting( int nBlanks )
{
Utils.logf( "engineStarting(%d)", nBlanks );
// Looks like I'll need my own transparent/floating window to
// show progress other than in the title bar (which I ain't
// always got).
}
public void engineStopping()
{
Utils.logf( "engineStopping" );
}
public String getUserString( int stringCode )
{
int id = 0;

View file

@ -34,6 +34,8 @@ public interface UtilCtxt {
String askPassword( String name );
boolean engineProgressCallback();
void engineStarting( int nBlanks );
void engineStopping();
// Values for why; should be enums
public static final int TIMER_PENDOWN = 1;