LCOV - code coverage report
Current view: top level - uui/source - authfallbackdlg.cxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 1 31 3.2 %
Date: 2015-06-13 12:38:46 Functions: 2 10 20.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  */
       9             : 
      10             : #include "authfallbackdlg.hxx"
      11             : 
      12             : #include <vcl/msgbox.hxx>
      13             : #include <iostream>
      14             : 
      15             : using namespace boost;
      16             : 
      17           0 : AuthFallbackDlg::AuthFallbackDlg(Window* pParent, const OUString& instructions,
      18             :                                  const OUString& url)
      19           0 :     : ModalDialog(pParent, "AuthFallbackDlg", "uui/ui/authfallback.ui")
      20             : {
      21           0 :     get( m_pTVInstructions, "instructions" );
      22           0 :     get( m_pEDUrl, "url" );
      23           0 :     get( m_pEDCode, "code" );
      24           0 :     get( m_pBTOk, "ok" );
      25           0 :     get( m_pBTCancel, "cancel" );
      26             : 
      27           0 :     m_pBTOk->SetClickHdl( LINK( this, AuthFallbackDlg, OKHdl) );
      28           0 :     m_pBTCancel->SetClickHdl( LINK( this, AuthFallbackDlg, CancelHdl) );
      29           0 :     m_pBTOk->Enable( true );
      30             : 
      31           0 :     m_pTVInstructions->SetText( instructions );
      32           0 :     m_pEDUrl->SetText( url );
      33           0 : }
      34             : 
      35           0 : AuthFallbackDlg::~AuthFallbackDlg()
      36             : {
      37           0 :     disposeOnce();
      38           0 : }
      39             : 
      40           0 : void AuthFallbackDlg::dispose()
      41             : {
      42           0 :     m_pTVInstructions.clear();
      43           0 :     m_pEDUrl.clear();
      44           0 :     m_pEDCode.clear();
      45           0 :     m_pBTOk.clear();
      46           0 :     m_pBTCancel.clear();
      47           0 :     ModalDialog::dispose();
      48           0 : }
      49             : 
      50           0 : IMPL_LINK ( AuthFallbackDlg,  OKHdl, Button *, )
      51             : {
      52           0 :     EndDialog( RET_OK );
      53           0 :     return 1;
      54             : }
      55             : 
      56           0 : IMPL_LINK ( AuthFallbackDlg,  CancelHdl, Button *, )
      57             : {
      58           0 :     EndDialog( RET_CANCEL );
      59           0 :     return 0;
      60         159 : }

Generated by: LCOV version 1.11