Add missing docml files.
authorPat Downey <patd@symbian.org>
Tue, 11 May 2010 12:32:07 +0100
changeset 16 d219857afeec
parent 15 d7fc66ccd6fb
child 17 bce47ded5685
Add missing docml files.
cbs/cbsui/resources/Copy of cbs_app.docml
cbs/cbsui/resources/cbs_app.docml
cbs/cbsui/resources/cbs_topic_view.docml
phoneclientserver/phoneclient/Inc/UssdWrapper/cphcltussdcommonconstant.h
phoneclientserver/phoneclient/Inc/UssdWrapper/tflogger.h
satui/satapp/resource/satapp.docml
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cbs/cbsui/resources/Copy of cbs_app.docml	Tue May 11 12:32:07 2010 +0100
@@ -0,0 +1,1 @@
+<hbdocument version="0.1" context="cbs_app_xml">
 <object name="t:config" type="QObject">
    <object name="t:settings" type="HbAction">
    <localizedstring name="text" value="Settings" comment="txt_cbs_settings" /> 
    </object>
    <object name="t:exit" type="HbAction">
    <localizedstring name="text" value="Exit" comment="txt_cbs_exit" /> 
    </object>
    <object name="t:help" type="HbAction">
    <localizedstring name="text" value="Help" comment="txt_cbs_help" /> 
    </object>
    <object name="t:toggle_reception" type="HbAction">
    <localizedstring name="text" value="Activate" comment="txt_cbs_activate" /> 
    </object>
    <object name="t:add_topic" type="HbAction">
    <localizedstring name="text" value="Add topic" comment="txt_cbs_add_topic" /> 
    </object>
    </object>

    <object name="t:open" type="HbAction">
    <localizedstring name="text" value="Open" comment="txt_cbs_open" /> 
    </object>
    
    <object name="t:subscribe" type="HbAction">
    <localizedstring name="text" value="Subscribe" comment="txt_cbs_subscribe" /> 
    </object>
    
    <object name="t:unsubscribe" type="HbAction">
    <localizedstring name="text" value="Unsubscribe" comment="txt_cbs_unsubscribe" /> 
    </object>
    <object name="t:hotmark" type="HbAction">
    <localizedstring name="text" value="Hotmark" comment="txt_cbs_hotmark"/> 
    </object>
        <object name="t:unhotmark" type="HbAction">
    <localizedstring name="text" value="Unhotmark" comment="txt_cbs_unhotmark"/> 
    </object>
    <object name="t:delete" type="HbAction">
    <localizedstring name="text" value="Delete" comment="txt_cbs_delete"/> 
    </object>

    <object name="t:edit" type="HbAction">
    <localizedstring name="text" value="Edit" comment="txt_cbs_edit"/> 
    </object>
  
      <!-- Main view -->
    <widget name="t:view" type="CbsUiTopicListView">
        <localizedstring name="title" value="Cell broadcast" comment="txt_cbs_title"/>
        <widget name="t:menu" type="HbMenu" role="HbView:menu">
            <ref object="t:settings" role="HbMenu:addAction" /> 
            <ref object="t:help" role="HbMenu:addAction" /> 
            <ref object="t:exit" role="HbMenu:addAction" /> 
        </widget>
        <widget name="t:toolbar" type="HbToolBar" role="HbView:toolBar">
            <ref object="t:toggle_reception" role="HbToolBar:addAction" /> 
            <ref object="t:add_topic" role="HbToolBar:addAction" /> 
        </widget>
        <widget name="content" role="HbView:widget" type="HbWidget">
            <widget name="t:topicIndex" type="HbListWidget">
                <sizepolicy verticalPolicy="MinimumExpanding" verticalStretch="0" />
                <sizepolicy horizontalPolicy="MinimumExpanding" horizontalStretch="0" />
                <sizehint type="MINIMUM" width="360" />
                <sizehint type="MAXIMUM" width="640" />
                <sizehint type="PREFERRED" width="360" /> 
                <sizehint type="FIXED" height="50" />
            </widget>
            <widget name="t:label" type="HbLabel">
                <localizedstring name="text" value="Topics" comment="txt_cbs_topics"/>   
            </widget>
            <widget name="t:ListWidget" type="HbListWidget">
                <sizepolicy verticalPolicy="Expanding" verticalStretch="1" />
                <sizepolicy horizontalPolicy="MinimumExpanding" horizontalStretch="0" />
                <sizehint type="MINIMUM" width="360" />
                <sizehint type="MAXIMUM" width="640" />
                <sizehint type="PREFERRED" width="360" /> 
                <sizehint type="PREFERRED" height="500" />
            </widget>
        </widget>
  </widget>
        
  <!-- portrait layout -->
    <section name="portrait">
        <widget name="content">
            <layout type="anchor">
                <anchoritem src="" srcEdge="TOP" dst="t:topicIndex" dstEdge="TOP" spacing="0" />
                <anchoritem src="" srcEdge="LEFT" dst="t:topicIndex" dstEdge="LEFT" spacing="0" />
                <anchoritem src="t:topicIndex" srcEdge="BOTTOM" dst="t:label" dstEdge="TOP" spacing="0" />               
                <anchoritem src="t:label" srcEdge="BOTTOM" dst="t:ListWidget" dstEdge="TOP" spacing="0" />
                <anchoritem src="" srcEdge="BOTTOM" dst="t:toolbar" dstEdge="TOP" spacing="0" />
                <anchoritem src="" srcEdge="CENTERH" dst="t:toolbar" dstEdge="CENTERH" spacing="0" />            
                </layout>
        </widget>
    </section>

  <!-- Connect toolbar signals -->
  <connect sender="t:add_topic" signal="triggered(bool)" receiver="t:view" slot="addNewTopic()" />
  <connect sender="t:toggle_reception" signal="triggered(bool)" receiver="t:view" slot="toggleReception()" />
</hbdocument>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cbs/cbsui/resources/cbs_app.docml	Tue May 11 12:32:07 2010 +0100
@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<hbdocument context="cbs_app_xml" version="0.8">
+    <object name="t:toggle_reception" type="HbAction">
+        <string name="text" value="Activate reception"/>
+    </object>
+    <object name="t:add_topic" type="HbAction">
+        <string name="iconText" value="Add topic"/>
+        <string locid="txt_cbs_add_topic" name="text" value="Add topic"/>
+        <string name="toolTip" value="Add topic"/>
+    </object>
+    <object name="t:settings" type="HbAction">
+        <string name="iconText" value="Settings"/>
+        <string locid="txt_cbs_settings" name="text" value="Settings"/>
+        <string locid="txt_cbs_settings" name="toolTip" value="Settings"/>
+    </object>
+    <object name="t:exit" type="HbAction">
+        <string name="iconText" value="Exit"/>
+        <string locid="txt_cbs_exit" name="text" value="Exit"/>
+        <string name="toolTip" value="Exit"/>
+    </object>
+    <object name="t:help" type="HbAction">
+        <string name="iconText" value="Help"/>
+        <string locid="txt_cbs_help" name="text" value="Help"/>
+        <string name="toolTip" value="Help"/>
+    </object>
+    <object name="t:toggle_reception" type="HbAction">
+        <string name="iconText" value="Activate"/>
+        <string locid="txt_cbs_activate" name="text" value="Activate"/>
+        <string name="toolTip" value="Activate"/>
+    </object>
+    <object name="t:open" type="HbAction">
+        <string locid="txt_cbs_open" name="text" value="Open"/>
+    </object>
+    <object name="t:subscribe" type="HbAction">
+        <string locid="txt_cbs_subscribe" name="text" value="Subscribe"/>
+    </object>
+    <object name="t:unsubscribe" type="HbAction">
+        <string locid="txt_cbs_unsubscribe" name="text" value="Unsubscribe"/>
+    </object>
+    <object name="t:hotmark" type="HbAction">
+        <string locid="txt_cbs_hotmark" name="text" value="Hotmark"/>
+    </object>
+    <object name="t:unhotmark" type="HbAction">
+        <string locid="txt_cbs_unhotmark" name="text" value="Unhotmark"/>
+    </object>
+    <object name="t:delete" type="HbAction">
+        <string locid="txt_cbs_delete" name="text" value="Delete"/>
+    </object>
+    <object name="t:edit" type="HbAction">
+        <string locid="txt_cbs_edit" name="text" value="Edit"/>
+    </object>
+    <widget name="t:view" type="CbsUiTopicListView">
+        <widget name="t:menu" role="HbView:menu" type="HbMenu">
+            <ref object="t:settings" role="HbMenu:addAction"/>
+            <ref object="t:help" role="HbMenu:addAction"/>
+            <ref object="t:exit" role="HbMenu:addAction"/>
+        </widget>
+        <widget name="content" role="HbView:widget" type="HbWidget">
+            <widget name="t:topicIndex" type="HbListWidget">
+                <real name="z" value="1"/>
+                <sizehint height="15un" type="PREFERRED" width="53.58209un"/>
+            </widget>
+            <widget name="t:label" type="HbLabel">
+                <enums name="alignment" value="AlignVCenter|AlignHCenter"/>
+                <real name="z" value="2"/>
+                <sizehint height="6.47761un" type="PREFERRED" width="53.58209un"/>
+                <string name="plainText" value="Topics"/>
+                <enums name="textFormat" value="RichText"/>
+            </widget>
+            <widget name="t:ListWidget" type="HbListWidget">
+                <real name="z" value="3"/>
+                <sizehint height="48.0597un" type="PREFERRED" width="53.43284un"/>
+            </widget>
+            <enums name="focusMode" value="FocusModeEdit"/>
+            <layout orientation="Vertical" spacing="0un" type="linear">
+                <contentsmargins bottom="0un" left="0un" right="0un" top="0un"/>
+                <linearitem itemname="t:topicIndex"/>
+                <linearitem itemname="t:label" spacing="0un"/>
+                <linearitem itemname="t:ListWidget"/>
+            </layout>
+        </widget>
+        <widget name="viewToolbar" role="HbView:toolBar" type="HbToolBar">
+            <ref object="t:toggle_reception" role="HbToolBar:addAction"/>
+            <ref object="t:add_topic" role="HbToolBar:addAction"/>
+        </widget>
+        <string locid="txt_cbs_title" name="title" value="Operator Messages"/>
+    </widget>
+    <metadata activeUIState="Common ui state" display="QHD portrait" unit="un">
+        <uistate name="Common ui state" sections="#common"/>
+    </metadata>
+</hbdocument>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cbs/cbsui/resources/cbs_topic_view.docml	Tue May 11 12:32:07 2010 +0100
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<hbdocument version="0.8">
+    <object name="action" type="HbAction">
+        <string name="text" value="&lt;&lt; Previous"/>
+    </object>
+    <object name="action_1" type="HbAction">
+        <string name="text" value="Next &gt;&gt;"/>
+    </object>
+    <object name="action_2" type="HbAction">
+        <string name="text" value="Back"/>
+    </object>
+    <widget name="t:view2" type="CbsUiTopicView">
+        <widget name="content" role="HbView:widget" type="HbWidget">
+            <widget name="listWidget2" type="HbListWidget">
+                <real name="z" value="3"/>
+                <sizehint height="9.85075un" type="PREFERRED" width="53.43284un"/>
+            </widget>
+            <widget name="treeView" type="HbTreeView">
+                <real name="z" value="4"/>
+                <sizehint height="70.59702un" type="PREFERRED" width="53.43284un"/>
+            </widget>
+            <layout type="anchor">
+                <anchoritem dst="listWidget2" dstEdge="LEFT" spacing="0un" src="" srcEdge="LEFT"/>
+                <anchoritem dst="listWidget2" dstEdge="TOP" spacing="0un" src="" srcEdge="TOP"/>
+                <anchoritem dst="treeView" dstEdge="LEFT" spacing="0.14925un" src="" srcEdge="LEFT"/>
+                <anchoritem dst="treeView" dstEdge="TOP" spacing="9.70149un" src="" srcEdge="TOP"/>
+            </layout>
+        </widget>
+        <widget name="viewMenu" role="HbView:menu" type="HbMenu"/>
+        <widget name="viewToolbar" role="HbView:toolBar" type="HbToolBar">
+            <ref object="action" role="HbToolBar:addAction"/>
+            <ref object="action_2" role="HbToolBar:addAction"/>
+        </widget>
+        <string locid="txt_cbs_title" name="title" value="Operator Messages"/>
+    </widget>
+    <metadata activeUIState="Common ui state" display="QHD portrait" unit="un">
+        <uistate name="Common ui state" sections="#common"/>
+    </metadata>
+</hbdocument>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/phoneclientserver/phoneclient/Inc/UssdWrapper/cphcltussdcommonconstant.h	Tue May 11 12:32:07 2010 +0100
@@ -0,0 +1,35 @@
+/*
+* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:
+*
+*/
+
+#ifndef CPHCLTUSSDCOMMONCONSTANT_H
+#define CPHCLTUSSDCOMMONCONSTANT_H
+
+//  CONSTANTS
+
+
+/**num for Ussd information type*/
+enum TPhCltUssdInformationType
+    {
+    EPhCltUssdUnconfirme = 1,
+    EPhCltUssdNotallowed,
+    EPhCltUssdNoservice,
+    EPhCltUssdOffline,
+    EPhCltUssdDone,
+    EPhCltUssdNotDone
+    };
+
+#endif  // CPHCLTUSSDCOMMONCONSTANT_H
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/phoneclientserver/phoneclient/Inc/UssdWrapper/tflogger.h	Tue May 11 12:32:07 2010 +0100
@@ -0,0 +1,106 @@
+/*
+* Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:
+*
+*
+*/
+
+#ifndef __TFLOGGER_H__
+#define __TFLOGGER_H__
+
+#include <flogger.h>
+#include <e32svr.h>
+
+_LIT(KTfLogFolder, "phcltussd");
+_LIT(KTfLogFile, "ussd.txt");
+
+/**
+* ------------------------------------------------------------------------------
+*
+*  Remove #define LOGGING_ENABLED from comments to enable logging
+*
+* ------------------------------------------------------------------------------
+*/
+
+#ifdef _DEBUG 
+#define LOGGING_ENABLED
+#endif
+
+/**
+* ------------------------------------------------------------------------------
+*
+*  LOGGING MACROs
+*
+*  USE THESE MACROS IN YOUR CODE
+*
+*  Example: TFLOGTEXT(own_desc)
+*  Example: TFLOGSTRING("Test")
+*  Example: TFLOGSTRING("Test %i", aValue)
+*  Example: TFLOGSTRING("Test %i %i", aValue1, aValue2)
+*
+* ------------------------------------------------------------------------------
+*/
+
+#ifdef LOGGING_ENABLED
+
+    #define TFLOGTEXT(TEXT) \
+        {  \
+        RFileLogger::Write(KTfLogFolder,KTfLogFile, \
+            EFileLoggingModeAppend, TEXT); \
+        RDebug::Print(TEXT); \
+        }
+
+    #define TFLOGSTRING(TEXT) \
+        { \
+        _LIT(tempLogDes, TEXT); \
+        RFileLogger::Write(\
+            KTfLogFolder, \
+            KTfLogFile, \
+            EFileLoggingModeAppend, \
+            tempLogDes()); \
+        RDebug::Print(_L(TEXT)); \
+        }
+
+    #define TFLOGSTRING2(TEXT, VAR1) \
+        { \
+        _LIT(tempLogDes, TEXT); \
+        RFileLogger::WriteFormat(\
+            KTfLogFolder, \
+            KTfLogFile, \
+            EFileLoggingModeAppend, \
+            TRefByValue<const TDesC>(tempLogDes()), VAR1); \
+        RDebug::Print(_L(TEXT), VAR1); \
+        }
+
+    #define TFLOGSTRING3(TEXT, VAR1, VAR2) \
+        { \
+        _LIT(tempLogDes, TEXT); \
+        RFileLogger::WriteFormat(\
+            KTfLogFolder, \
+            KTfLogFile, \
+            EFileLoggingModeAppend, \
+            TRefByValue<const TDesC>(tempLogDes()), VAR1, VAR2); \
+        RDebug::Print(_L(TEXT), VAR1, VAR2); \
+        }
+
+#else
+
+    #define TFLOGTEXT(TEXT)
+    #define TFLOGSTRING(TEXT)
+    #define TFLOGSTRING2(TEXT, VAR1)
+    #define TFLOGSTRING3(TEXT, VAR1, VAR2)
+
+#endif // LOGGING_ENABLED
+
+#endif // __TFLOGGER_H__
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/satui/satapp/resource/satapp.docml	Tue May 11 12:32:07 2010 +0100
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<hbdocument context="satapp" version="0.7">
+    <widget name="setupmenu_view" type="SatAppView">
+        <widget name="content" role="HbView:widget" type="HbWidget">
+            <widget name="s:ListWidget" type="HbListWidget">
+                <real name="z" value="1"/>
+            </widget>
+            <layout type="anchor">
+                <anchoritem dst="s:ListWidget" dstEdge="LEFT" spacing="0un" src="" srcEdge="LEFT"/>
+                <anchoritem dst="s:ListWidget" dstEdge="TOP" spacing="0un" src="" srcEdge="TOP"/>
+                <anchoritem dst="s:ListWidget" dstEdge="RIGHT" spacing="0un" src="" srcEdge="RIGHT"/>
+                <anchoritem dst="s:ListWidget" dstEdge="BOTTOM" spacing="0un" src="" srcEdge="BOTTOM"/>
+            </layout>
+        </widget>
+        <widget name="s:MenuAction" role="HbView:menu" type="HbMenu">
+            <!--ref object="t:exit" role="HbMenu:addAction"/-->
+        </widget>
+        <string name="title" value="SIM Services"/>
+    </widget>
+    <widget name="selectitem_view" type="SatAppView">
+        <widget name="content_2" role="HbView:widget" type="HbWidget">
+            <widget name="t:ListWidget" type="HbListWidget">
+                <real name="z" value="2"/>
+            </widget>
+            <widget name="t:label" type="HbLabel">
+                <real name="z" value="3"/>
+                <sizehint height="6un" type="PREFERRED"/>
+            </widget>
+            <layout type="anchor">
+                <anchoritem dst="t:ListWidget" dstEdge="LEFT" spacing="0un" src="" srcEdge="LEFT"/>
+                <anchoritem dst="t:ListWidget" dstEdge="RIGHT" spacing="0un" src="" srcEdge="RIGHT"/>
+                <anchoritem dst="t:ListWidget" dstEdge="TOP" spacing="6un" src="" srcEdge="TOP"/>
+                <anchoritem dst="t:ListWidget" dstEdge="BOTTOM" spacing="0un" src="" srcEdge="BOTTOM"/>
+                <anchoritem dst="t:label" dstEdge="LEFT" spacing="0un" src="" srcEdge="LEFT"/>
+                <anchoritem dst="t:label" dstEdge="RIGHT" spacing="0un" src="" srcEdge="RIGHT"/>
+                <anchoritem dst="t:label" dstEdge="TOP" spacing="0un" src="" srcEdge="TOP"/>
+            </layout>
+        </widget>
+        <widget name="t:MenuAction" role="HbView:menu" type="HbMenu">
+            <!--ref object="t:back" role="HbMenu:addAction"/-->
+            <!--ref object="t:exit" role="HbMenu:addAction"/-->
+        </widget>
+        <string name="title" value="SIM Services"/>
+    </widget>
+    <!--connect receiver="selectitem_view" sender="t:back" signal="triggered()" slot="backButtonClicked()"/-->
+    <metadata activeUIState="Common ui state" display="QHD portrait" unit="un">
+        <uistate name="Common ui state" sections="#common"/>
+    </metadata>
+</hbdocument>