Ejemplo n.º 1
0
 String GetFieldValue(const String& fieldName) const override
 {
   if (fieldName == Text::FIELD_PROGRAM_NAME)
   {
     return GetProgramTitle();
   }
   else if (fieldName == Text::FIELD_PROGRAM_VERSION)
   {
     return GetProgramVersion();
   }
   else if (fieldName == Text::FIELD_BUILD_DATE)
   {
     return GetBuildDate();
   }
   else if (fieldName == Text::FIELD_BUILD_PLATFORM)
   {
     return GetBuildPlatform();
   }
   else if (fieldName == Text::FIELD_BUILD_ARCH)
   {
     return GetBuildArchitecture();
   }
   else
   {
     return String();
   }
 }
Ejemplo n.º 2
0
String GetProgramVersionString()
{
  return Strings::Format(Text::PROGRAM_VERSION_STRING,
    GetProgramTitle(),
    GetProgramVersion(),
    GetBuildDate(),
    GetBuildPlatform(),
    GetBuildArchitecture(),
    GetBuildArchitectureVersion());
}
Ejemplo n.º 3
0
/*
 * New functions should be added using this instead of introducing new EXPORTS.
 * Reason is that if developer A and developer B freezes new functions independently
 * The S60 library will lost its binary compatiblity. If A and B just implement new 
 * extension IDs (with unique ids) then definition files does not need to update.
 * inline functions can be used to make extensions more clean
 */
EXPORT_C TInt CSDL::Extension_(TUint aExtensionId, TAny*& /*a0*/, TAny* a1)
    {
    switch(aExtensionId)
        {
        case KSDLExtensionBuildDate:
            return GetBuildDate(reinterpret_cast<TDes*>(a1));  
      //  case KSDLExtensionBitGdiCanvas:
      //       return (gEpocEnv->iBitGdiCanvas != NULL) && (*(gEpocEnv->iBitGdiCanvas) != NULL) ? (*(gEpocEnv->iBitGdiCanvas))->Handle() : KErrNotFound;
        }
    return KErrNotSupported;
    }
Ejemplo n.º 4
0
void ShowBuildInfo()
{
	char buffer[HeaderMsgSize];
	GetBuildDate((void*)&buffer,sizeof(buffer));
	Serial.print("Date:");
	Serial.println((char*)&buffer);
	Serial.print("Build:");
	Serial.println(GetBuildNumber());
	Serial.print("Free RAM (B):");
	Serial.println( GetFreeRam());
	Serial.println();
}