emailuis/nmhswidget/src/nmhswidgetdatetimeobserver_p.cpp
changeset 47 f83bd4ae1fe3
parent 43 99bcbff212ad
equal deleted inserted replaced
45:780f926bc26c 47:f83bd4ae1fe3
    29 NmHsWidgetDateTimeObserverPrivate::NmHsWidgetDateTimeObserverPrivate(NmHsWidgetDateTimeObserver *q) :
    29 NmHsWidgetDateTimeObserverPrivate::NmHsWidgetDateTimeObserverPrivate(NmHsWidgetDateTimeObserver *q) :
    30     q_ptr(q)
    30     q_ptr(q)
    31 {
    31 {
    32     NM_FUNCTION;
    32     NM_FUNCTION;
    33     TCallBack callback( LocaleChangeCallback, this );
    33     TCallBack callback( LocaleChangeCallback, this );
    34     //TODO: Handle leave properly
    34     
    35     TRAP_IGNORE(iLocaleNotifier = CEnvironmentChangeNotifier::NewL( CActive::EPriorityStandard, callback ));
    35     //CTC skipped as last else of macro QT_TRAP_THROWING cannot be tested (panics on purpose)
       
    36 #pragma CTC SKIP
       
    37     QT_TRAP_THROWING(iLocaleNotifier = CEnvironmentChangeNotifier::NewL( CActive::EPriorityStandard, callback ));
       
    38 #pragma CTC ENDSKIP
       
    39     
    36     iLocaleNotifier->Start();
    40     iLocaleNotifier->Start();
    37 }
    41 }
    38 
    42 
    39 /*!
    43 /*!
    40     \fn NmHsWidgetDateTimeObserverPrivate::~NmHsWidgetDateTimeObserverPrivate()
    44     \fn NmHsWidgetDateTimeObserverPrivate::~NmHsWidgetDateTimeObserverPrivate()