mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-04 23:02:02 +01:00
add engineStopping and engineStarting (stubbed out so far)
This commit is contained in:
parent
567d5f4d70
commit
7595b36037
3 changed files with 21 additions and 2 deletions
|
@ -378,13 +378,17 @@ and_util_getTraySearchLimits(XW_UtilCtxt* uc, XP_U16* min, XP_U16* max )
|
||||||
static void
|
static void
|
||||||
and_util_engineStarting( XW_UtilCtxt* uc, XP_U16 nBlanks )
|
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
|
static void
|
||||||
and_util_engineStopping( XW_UtilCtxt* uc )
|
and_util_engineStopping( XW_UtilCtxt* uc )
|
||||||
{
|
{
|
||||||
LOG_FUNC();
|
UTIL_CBK_HEADER("engineStopping", "()V" );
|
||||||
|
(*env)->CallVoidMethod( env, util->jutil, mid );
|
||||||
|
UTIL_CBK_TAIL();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -879,6 +879,19 @@ public class BoardActivity extends Activity implements UtilCtxt {
|
||||||
return ! m_jniThread.busy();
|
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 )
|
public String getUserString( int stringCode )
|
||||||
{
|
{
|
||||||
int id = 0;
|
int id = 0;
|
||||||
|
|
|
@ -34,6 +34,8 @@ public interface UtilCtxt {
|
||||||
String askPassword( String name );
|
String askPassword( String name );
|
||||||
|
|
||||||
boolean engineProgressCallback();
|
boolean engineProgressCallback();
|
||||||
|
void engineStarting( int nBlanks );
|
||||||
|
void engineStopping();
|
||||||
|
|
||||||
// Values for why; should be enums
|
// Values for why; should be enums
|
||||||
public static final int TIMER_PENDOWN = 1;
|
public static final int TIMER_PENDOWN = 1;
|
||||||
|
|
Loading…
Reference in a new issue