관련 링크 : Configuration file - config.xml

 

 Widgets 들은 'W3C' 기술방식으로 쓰기를 추천한다.

 

Packaged Web Apps (Widgets) and XML Digital Signatures for Widgets that specifies the configuration file config.xml.

 

사이트를 다 읽기는 어려우므로 우선적으로 AutomotiveLinux 에 정의된 내용을 정리해 본다.

 

 

 

개요

 config.xml 파일은 프레임워크에 대한 응용프로그램의 중요한 정보를 설명한다.

  • 응용프로그램의 고유 식별자
  • 응용프로그램의 이름
  • 응용프로그램의 타입
  • 응용프로그램에 연결된 사용 권한
  • 응용프로그램간의 의존성 과 서비스

 파일은 위젯의 루트에 있어야 하며 대소문자를 구별한다. config,xml 은 widgets 문서에서 설명하는 XML 파일이다.

 

다음은 QML 어플리케이션 SmartHome 에 대한 예제이다.

 

 

 

 <?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" id="smarthome" version="0.1">
  <name>SmartHome</name>
  <icon src="smarthome.png"/>
  <content src="qml/smarthome/smarthome.qml" type="text/vnd.qt.qml"/>
  <description>This is the Smarthome QML demo application. It shows some user interfaces for controlling an
automated house. The user interface is completely done with QML.</description>
  <author>Qt team</author>
  <license>GPL</license>
</widget>

 

가장 중요한 항목은 다음과 같다.

  • <widget id="....."> : 고유한 위젯 아이디를 주어야 한다.
  • <widget version="......"> : 위젯 에 대한 버전을 설정한다ㅏ.
  • <icon src="..."> :  응용프로그램에 대한 아이콘경로를 설정한다. ( 다른크기로 반복 될수 있음 ?)
  • <content src="..." type="..."> : 엔트리 포인트와 타입을 가르킨다.  소스경로?

 

표준 요소 "config.xml"

 

 widget 의 요소

1. 위젯의 속성 ID

 

 

 

 

 

 

'Yocto > AGL' 카테고리의 다른 글

[AGL] afb_binding  (0) 2018.10.19
lightmediascanner  (0) 2018.10.18
[AGL]smack  (0) 2018.10.10
[AGL] Application FrameWork  (0) 2018.10.10
[AGL] 링크 통합  (0) 2018.10.10

+ Recent posts