MeeGo 1.2 Harmattan Developer Documentation Develop for the Nokia N9

sslerrors.ui Example File

network/securesocketclient/sslerrors.ui
 <ui version="4.0" >
  <class>SslErrors</class>
  <widget class="QDialog" name="SslErrors" >
   <property name="geometry" >
    <rect>
     <x>0</x>
     <y>0</y>
     <width>371</width>
     <height>216</height>
    </rect>
   </property>
   <property name="windowTitle" >
    <string>Unable To Validate The Connection</string>
   </property>
   <layout class="QVBoxLayout" >
    <item>
     <widget class="QLabel" name="label" >
      <property name="text" >
       <string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
 p, li { white-space: pre-wrap; }
 &lt;/style>&lt;/head>&lt;body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;">
 &lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">&lt;span style=" font-weight:600; color:#ff0000;">Warning&lt;/span>&lt;span style=" color:#ff0000;">:&lt;/span>&lt;span style=" color:#000000;"> One or more errors with this connection prevent validating the authenticity of the host you are connecting to. Please review the following list of errors, and click &lt;/span>&lt;span style=" color:#000000;">Ignore&lt;/span>&lt;span style=" color:#000000;"> to continue, or &lt;/span>&lt;span style=" color:#000000;">Cancel&lt;/span>&lt;span style=" color:#000000;"> to abort the connection.&lt;/span>&lt;/p>&lt;/body>&lt;/html></string>
      </property>
      <property name="wordWrap" >
       <bool>true</bool>
      </property>
     </widget>
    </item>
    <item>
     <widget class="QListWidget" name="sslErrorList" />
    </item>
    <item>
     <layout class="QHBoxLayout" >
      <item>
       <widget class="QPushButton" name="certificateChainButton" >
        <property name="text" >
         <string>View Certificate Chain</string>
        </property>
        <property name="autoDefault" >
         <bool>false</bool>
        </property>
       </widget>
      </item>
      <item>
       <spacer>
        <property name="orientation" >
         <enum>Qt::Horizontal</enum>
        </property>
        <property name="sizeHint" >
         <size>
          <width>40</width>
          <height>20</height>
         </size>
        </property>
       </spacer>
      </item>
      <item>
       <widget class="QPushButton" name="pushButton" >
        <property name="text" >
         <string>Ignore</string>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QPushButton" name="pushButton_2" >
        <property name="text" >
         <string>Cancel</string>
        </property>
       </widget>
      </item>
     </layout>
    </item>
   </layout>
  </widget>
  <resources/>
  <connections>
   <connection>
    <sender>pushButton</sender>
    <signal>clicked()</signal>
    <receiver>SslErrors</receiver>
    <slot>accept()</slot>
    <hints>
     <hint type="sourcelabel" >
      <x>235</x>
      <y>185</y>
     </hint>
     <hint type="destinationlabel" >
      <x>228</x>
      <y>287</y>
     </hint>
    </hints>
   </connection>
   <connection>
    <sender>pushButton_2</sender>
    <signal>clicked()</signal>
    <receiver>SslErrors</receiver>
    <slot>reject()</slot>
    <hints>
     <hint type="sourcelabel" >
      <x>325</x>
      <y>192</y>
     </hint>
     <hint type="destinationlabel" >
      <x>333</x>
      <y>231</y>
     </hint>
    </hints>
   </connection>
  </connections>
 </ui>