На главную Наши проекты:
Журнал   ·   Discuz!ML   ·   Wiki   ·   DRKB   ·   Помощь проекту
ПРАВИЛА FAQ Помощь Участники Календарь Избранное RSS
msm.ru
! Правила раздела "Программирование под PalmOS"
Правила раздела просты:
1. Будьте вежливыми.
2. Задавате вопросы только по теме. Пользовательские вопросы (у меня не работает пальм) являются оффтопиком. Пользуйтесь конференциями palmz.in, hpc.ru, ihand.ru .
3. Поиск вареза запрещен.
4. Пользуйтесь поиском. Не надейтесь, что кому-то доставляет удовольствие отвечать в сотый раз на один и тот же вопрос.
  
> синхронизация времени
    народ, а как время на палме синхронизовать....
    посмотрел Conduit API, не нашел ничего... Может смотрел
    не туда
      мне хватает переодического запуска http://palmos.sources.ru/src/net/sntp.tar.gz

      Но где то мелькало что при синхронизации можно отдать время - надо глянуть на исходники протокола (например в coldsync или pilot-xfer)
        SyncWriteSysDateTime
        Purpose
        Sets the system date and time on the handheld.

        Compatibility
        HotSync version: All.
        Palm OS version: All.


        --------------------------------------------------------------------------------
        IMPORTANT: Although this function is available in all versions of the Sync Manager API, it does not work properly in any version earlier than version 2.2.
        --------------------------------------------------------------------------------

        Prototype
        long SyncWriteSysDateTime (long lDate);

        Parameters
        -> lDate  A time_t value that specifies the system date and time value. This value must be in the format returned by the time function.

        Result
        If successful, returns 0.

        If unsuccessful, returns one of the following nonzero error code values:

        SYNCERR_COMM_NOT_INIT
        SYNCERR_LOST_CONNECTION
        SYNCERR_REMOTE_SYS
        SYNCERR_REMOTE_BAD_ARG
        If you call this function in a version of the Sync Manager API earlier than version 2.2, the SYNCERR_REMOTE_BAD_ARG error code is returned.

        For more information about the error codes, see "Sync Manager Error Codes."

        Comments
        You can use the SyncWriteSysDateTime function to set the current date and time on the handheld. In general, conduits should avoid changing the system date and time.

        The SyncWriteSysDateTime function does not notify applications on the handheld that it has changed the time. Some applications, such as the built-in datebook, need to know when the system time changes so that they can adjust their alarm settings. To work around this problem, you need to call the SyncRebootSystem function, which will cause a soft-reset of the handheld after the HotSync operation completes. All applications on the handheld are notified of the reset and can make any necessary adjustments.

        See Also
        The SyncReadSysDateTime function.

        0 пользователей читают эту тему (0 гостей и 0 скрытых пользователей)
        0 пользователей:


        Рейтинг@Mail.ru
        [ Script execution time: 0,0190 ]   [ 16 queries used ]   [ Generated: 28.03.24, 20:46 GMT ]