MCPcopy Create free account
hub / github.com/buggins/coolreader / doCommand

Method doCommand

android/jni/docview.cpp:598–622  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

596}
597
598int DocViewNative::doCommand( int cmd, int param )
599{
600 switch (cmd) {
601 case DCMD_OPEN_RECENT_BOOK:
602 {
603 return openRecentBook();
604 }
605 break;
606 case DCMD_CLOSE_BOOK:
607 {
608 return closeBook();
609 }
610 break;
611 case DCMD_RESTORE_POSITION:
612 {
613 if ( _docview->isDocumentOpened() ) {
614 _docview->restorePosition();
615 }
616 }
617 break;
618 default:
619 return 0;
620 }
621 return 1;
622}
623
624
625/*

Calls 2

isDocumentOpenedMethod · 0.80
restorePositionMethod · 0.45

Tested by

no test coverage detected