localrep.h
上传用户:zhongxx05
上传日期:2007-06-06
资源大小:33641k
文件大小:7k
源码类别:

Symbian

开发平台:

C/C++

  1. /* ***** BEGIN LICENSE BLOCK ***** 
  2.  * Version: RCSL 1.0/RPSL 1.0 
  3.  *  
  4.  * Portions Copyright (c) 1995-2002 RealNetworks, Inc. All Rights Reserved. 
  5.  *      
  6.  * The contents of this file, and the files included with this file, are 
  7.  * subject to the current version of the RealNetworks Public Source License 
  8.  * Version 1.0 (the "RPSL") available at 
  9.  * http://www.helixcommunity.org/content/rpsl unless you have licensed 
  10.  * the file under the RealNetworks Community Source License Version 1.0 
  11.  * (the "RCSL") available at http://www.helixcommunity.org/content/rcsl, 
  12.  * in which case the RCSL will apply. You may also obtain the license terms 
  13.  * directly from RealNetworks.  You may not use this file except in 
  14.  * compliance with the RPSL or, if you have a valid RCSL with RealNetworks 
  15.  * applicable to this file, the RCSL.  Please see the applicable RPSL or 
  16.  * RCSL for the rights, obligations and limitations governing use of the 
  17.  * contents of the file.  
  18.  *  
  19.  * This file is part of the Helix DNA Technology. RealNetworks is the 
  20.  * developer of the Original Code and owns the copyrights in the portions 
  21.  * it created. 
  22.  *  
  23.  * This file, and the files included with this file, is distributed and made 
  24.  * available on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 
  25.  * EXPRESS OR IMPLIED, AND REALNETWORKS HEREBY DISCLAIMS ALL SUCH WARRANTIES, 
  26.  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS 
  27.  * FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 
  28.  * 
  29.  * Technology Compatibility Kit Test Suite(s) Location: 
  30.  *    http://www.helixcommunity.org/content/tck 
  31.  * 
  32.  * Contributor(s): 
  33.  *  
  34.  * ***** END LICENSE BLOCK ***** */ 
  35. /*
  36.  *
  37.  *
  38.  * Abstraction:
  39.  * This file contains the declaration of routines that will enable the extraction of data
  40.  * used in elements of the ui in their appropriate localized form.
  41.  *
  42.  * Targets: Windows 95/NT, 3.1, MacOS, X-Windows
  43.  * Module: HXwindows Cross-Platform Development Framework
  44.  *
  45.  */
  46. #ifndef _LOCALREP_H_
  47. #define _LOCALREP_H_
  48. // Includes for this file...
  49. #include <stdlib.h>
  50. #include "hlxclib/time.h"
  51. #ifdef __cplusplus
  52. extern "C" {
  53. #endif  /* __cplusplus */
  54. // Flags to use with HXGetLocalTime...
  55. #define HXLOCALTIMESTRING_NOSECONDS 0x00000001
  56. #define HXLOCALTIMESTRING_NOMINUTESORSECONDS 0x00000002
  57. #define HXLOCALTIMESTRING_NOTIMEMARKER 0x00000004
  58. #define HXLOCALTIMESTRING_24HOURFORMAT 0x00000008
  59. #define HXLOCALTIMESTRING_DEFAULT 0x00000000
  60. /*
  61.  * HXGetLocalTimeString
  62.  * --------------------
  63.  * Returns in the buffer the formated string for the time given, or for the local time if the time
  64.  * given is 0.
  65.  *
  66.  * input:
  67.  * char *buffer - Buffer to copy string to.
  68.  * INT32 sizeOfBuffer - Size of buffer to copy string to.
  69.  * const char *formatString - String that contains the format of the resultant time string.  The allowed
  70.  *   formatting commands are:  
  71.  * h   Hours with no leading zero for single-digit hours; 12-hour clock 
  72.  * hh  Hours with leading zero for single-digit hours; 12-hour clock 
  73.  * H   Hours with no leading zero for single-digit hours; 24-hour clock 
  74.  * HH  Hours with leading zero for single-digit hours; 24-hour clock 
  75.  * m   Minutes with no leading zero for single-digit minutes 
  76.  * mm  Minutes with leading zero for single-digit minutes 
  77.  * s   Seconds with no leading zero for single-digit seconds 
  78.  * ss  Seconds with leading zero for single-digit seconds 
  79.  * t   One character time marker string, such as A or P 
  80.  * tt  Multicharacter time marker string, such as AM or PM 
  81.  *   For example, to get the time string