mmserv/tms/tmscallserver/src/tarsettings.cpp
changeset 12 5a06f39ad45b
parent 0 71ca22bcf22a
equal deleted inserted replaced
0:71ca22bcf22a 12:5a06f39ad45b
    25 // CONSTANTS
    25 // CONSTANTS
    26 _LIT_SECURITY_POLICY_PASS(KTMSServerReadPolicy);
    26 _LIT_SECURITY_POLICY_PASS(KTMSServerReadPolicy);
    27 _LIT_SECURITY_POLICY_C1(KTMSServerWritePolicy, ECapabilityWriteUserData);
    27 _LIT_SECURITY_POLICY_C1(KTMSServerWritePolicy, ECapabilityWriteUserData);
    28 
    28 
    29 // -----------------------------------------------------------------------------
    29 // -----------------------------------------------------------------------------
    30 // TarSettings::TarSettings
    30 // TMSTarSettings::TMSTarSettings
    31 // C++ default constructor can NOT contain any code, that
    31 // C++ default constructor can NOT contain any code, that
    32 // might leave.
    32 // might leave.
    33 // -----------------------------------------------------------------------------
    33 // -----------------------------------------------------------------------------
    34 //
    34 //
    35 TarSettings::TarSettings()
    35 TMSTarSettings::TMSTarSettings()
    36     {
    36     {
    37     }
    37     }
    38 
    38 
    39 // -----------------------------------------------------------------------------
    39 // -----------------------------------------------------------------------------
    40 // TarSettings::ConstructL
    40 // TMSTarSettings::ConstructL
    41 // Symbian 2nd phase constructor can leave.
    41 // Symbian 2nd phase constructor can leave.
    42 // -----------------------------------------------------------------------------
    42 // -----------------------------------------------------------------------------
    43 //
    43 //
    44 void TarSettings::ConstructL()
    44 void TMSTarSettings::ConstructL()
    45     {
    45     {
    46     TRACE_PRN_FN_ENT;
    46     TRACE_PRN_FN_ENT;
    47     TInt err = RProperty::Define(ERoutingPs, RProperty::EByteArray,
    47     TInt err = RProperty::Define(ERoutingPs, RProperty::EByteArray,
    48             KTMSServerReadPolicy, KTMSServerWritePolicy);
    48             KTMSServerReadPolicy, KTMSServerWritePolicy);
    49     TRACE_PRN_N1(_L("TarSetting::ConstructL err:%d"),err);
    49     TRACE_PRN_N1(_L("TarSetting::ConstructL err:%d"),err);
    54         }
    54         }
    55     TRACE_PRN_FN_EXT;
    55     TRACE_PRN_FN_EXT;
    56     }
    56     }
    57 
    57 
    58 // -----------------------------------------------------------------------------
    58 // -----------------------------------------------------------------------------
    59 // TarSettings::NewL
    59 // TMSTarSettings::NewL
    60 // Two-phased constructor.
    60 // Two-phased constructor.
    61 // -----------------------------------------------------------------------------
    61 // -----------------------------------------------------------------------------
    62 //
    62 //
    63 TarSettings* TarSettings::NewL()
    63 TMSTarSettings* TMSTarSettings::NewL()
    64     {
    64     {
    65     TarSettings* self = new (ELeave) TarSettings();
    65     TMSTarSettings* self = new (ELeave) TMSTarSettings();
    66     CleanupStack::PushL(self);
    66     CleanupStack::PushL(self);
    67     self->ConstructL();
    67     self->ConstructL();
    68     CleanupStack::Pop(self);
    68     CleanupStack::Pop(self);
    69     return self;
    69     return self;
    70     }
    70     }
    71 
    71 
    72 // Destructor
    72 // Destructor
    73 TarSettings::~TarSettings()
    73 TMSTarSettings::~TMSTarSettings()
    74     {
    74     {
    75     TRACE_PRN_FN_ENT;
    75     TRACE_PRN_FN_ENT;
    76     TInt err = RProperty::Delete(KTMSPropertyCategory, ERoutingPs);
    76     TInt err = RProperty::Delete(KTMSPropertyCategory, ERoutingPs);
    77     TRACE_PRN_N1(_L("TarSetting::~TarSettings err:%d"),err);
    77     TRACE_PRN_N1(_L("TarSetting::~TMSTarSettings err:%d"),err);
    78     TRACE_PRN_FN_ENT;
    78     TRACE_PRN_FN_ENT;
    79     }
    79     }
    80 
    80 
    81 // -----------------------------------------------------------------------------
    81 // -----------------------------------------------------------------------------
    82 // TarSettings::SetVolume
    82 // TMSTarSettings::SetVolume
    83 // -----------------------------------------------------------------------------
    83 // -----------------------------------------------------------------------------
    84 //
    84 //
    85 void TarSettings::SetTar(TRoutingMsgBufPckg rountingpckg, TBool aPublish)
    85 void TMSTarSettings::SetTar(TRoutingMsgBufPckg rountingpckg, TBool aPublish)
    86     {
    86     {
    87     TRACE_PRN_FN_ENT;
    87     TRACE_PRN_FN_ENT;
    88     //    TInt err(KErrNone);
    88     //    TInt err(KErrNone);
    89     if (aPublish)
    89     if (aPublish)
    90         {
    90         {