I am working on an isilo document launcher kind of app for use on palm os, using the following function :
It works very well for documents in RAM, but palm os doesn't have any function that handles launching pdb's from an expansion card.Code://------------------------------------------- // The launchiSiloFileByName function //------------------------------------------- #define kiSiloAppCreator 'Silo' #define kiSiloDocCreator 'SilX' #define kiSiloDataBaseType 'SDoc' void launchiSiloFileByName(char *databaseName) { Err error = errNone; DmSearchStateType searchState; UInt16 appCard, movieCard; LocalID appID, movieID; Boolean firstTime; SysAppLaunchCmdOpenDBType *launchInfo; // find the iSilo application error = DmGetNextDatabaseByTypeCreator(true, &searchState, sysFileTApplication, kiSiloAppCreator, true, &appCard, &appID); if (errNone != error) return; // find the Kinoma movie with the requested name firstTime = true; while (true) { char thisName[128]; error = DmGetNextDatabaseByTypeCreator(firstTime, &searchState, kiSiloDataBaseType, kiSiloDocCreator, false, &movieCard, &movieID); if (errNone != error) return; error = DmDatabaseInfo(movieCard, movieID, thisName, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); if (errNone != error) return; if (0 == StrCaselessCompare(databaseName, thisName)) break; firstTime = false; } // launch the application with the selected database launchInfo = (SysAppLaunchCmdOpenDBType *) MemPtrNew(sizeof(SysAppLaunchCmdOpenDBType)); if (NULL == launchInfo) return; MemPtrSetOwner((MemPtr)launchInfo, 0); // SysUIAppSwitch will dispose launchInfo->cardNo = movieCard; launchInfo->dbID = movieID; error = SysUIAppSwitch(appCard, appID, sysAppLaunchCmdOpenDB, launchInfo); if (errNone != error) return; }
Kinoma explains in a technote (http://www.kinoma.com/technote01.html, second part) how to do this with kinoma player for palm os. However, they have defined a sysAppLaunchCmdCustomBase in the player to handle this type of launching.
=> Does such a function exist in iSilo? If so, is it publicly available ? If not, would it be possible to write it ?
Thanks for your consideration,
P


Reply With Quote

Bookmarks