omadmadapters/nsmldmalwaysonadapter/inc/nsmldmalwaysonadapter.inl
author hgs
Tue, 13 Jul 2010 03:48:30 +0530
changeset 45 0f9fc722d255
parent 44 deviceupdatesui/omadmadapters/nsmldmalwaysonadapter/inc/nsmldmalwaysonadapter.inl@137912d1a556
permissions -rw-r--r--
201021_01
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
44
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). 
hgs
parents:
diff changeset
     3
* All rights reserved.
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
*
hgs
parents:
diff changeset
     9
* Initial Contributors:
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    11
*
hgs
parents:
diff changeset
    12
* Contributors:
hgs
parents:
diff changeset
    13
*
hgs
parents:
diff changeset
    14
* Description:  Contains implementations of inline functions.
hgs
parents:
diff changeset
    15
*
hgs
parents:
diff changeset
    16
*/
hgs
parents:
diff changeset
    17
hgs
parents:
diff changeset
    18
hgs
parents:
diff changeset
    19
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    20
// Returns the iExecuted member of the object
hgs
parents:
diff changeset
    21
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    22
//
hgs
parents:
diff changeset
    23
TBool CSmlDmAOCommandElement::Executed()
hgs
parents:
diff changeset
    24
    {
hgs
parents:
diff changeset
    25
    return iExecuted;
hgs
parents:
diff changeset
    26
    }
hgs
parents:
diff changeset
    27
hgs
parents:
diff changeset
    28
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    29
// Returns the iStatus member of the object
hgs
parents:
diff changeset
    30
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    31
//
hgs
parents:
diff changeset
    32
CSmlDmAdapter::TError CSmlDmAOCommandElement::Status()
hgs
parents:
diff changeset
    33
    {
hgs
parents:
diff changeset
    34
    return iStatus;
hgs
parents:
diff changeset
    35
    }
hgs
parents:
diff changeset
    36
    
hgs
parents:
diff changeset
    37
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    38
// Returns the iLeaf member of the object
hgs
parents:
diff changeset
    39
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    40
//
hgs
parents:
diff changeset
    41
TBool CSmlDmAOCommandElement::Leaf()
hgs
parents:
diff changeset
    42
    {
hgs
parents:
diff changeset
    43
    return iLeaf;
hgs
parents:
diff changeset
    44
    }
hgs
parents:
diff changeset
    45
    
hgs
parents:
diff changeset
    46
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    47
// Returns the iStatusRef member of the object
hgs
parents:
diff changeset
    48
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    49
//
hgs
parents:
diff changeset
    50
TInt CSmlDmAOCommandElement::StatusRef()
hgs
parents:
diff changeset
    51
    {
hgs
parents:
diff changeset
    52
    return iStatusRef;    
hgs
parents:
diff changeset
    53
    }
hgs
parents:
diff changeset
    54
    
hgs
parents:
diff changeset
    55
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    56
// Returns the iResultRef member of the object
hgs
parents:
diff changeset
    57
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    58
//
hgs
parents:
diff changeset
    59
TInt CSmlDmAOCommandElement::ResultRef()
hgs
parents:
diff changeset
    60
    {
hgs
parents:
diff changeset
    61
    return iResultRef;
hgs
parents:
diff changeset
    62
    }
hgs
parents:
diff changeset
    63
    
hgs
parents:
diff changeset
    64
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    65
// Returns the iCmdType member of the object
hgs
parents:
diff changeset
    66
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    67
//
hgs
parents:
diff changeset
    68
CNSmlDmAOAdapter::TCommandType  CSmlDmAOCommandElement::CmdType()
hgs
parents:
diff changeset
    69
    {
hgs
parents:
diff changeset
    70
    return iCmdType;
hgs
parents:
diff changeset
    71
    }
hgs
parents:
diff changeset
    72
    
hgs
parents:
diff changeset
    73
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    74
// Returns the iData member of the object
hgs
parents:
diff changeset
    75
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    76
//
hgs
parents:
diff changeset
    77
const HBufC8* CSmlDmAOCommandElement::Data()
hgs
parents:
diff changeset
    78
    {
hgs
parents:
diff changeset
    79
    return iData;
hgs
parents:
diff changeset
    80
    }
hgs
parents:
diff changeset
    81
    
hgs
parents:
diff changeset
    82
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    83
// Returns the iLastUriSeg member of the object
hgs
parents:
diff changeset
    84
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    85
//
hgs
parents:
diff changeset
    86
const HBufC8* CSmlDmAOCommandElement::LastUriSeg()
hgs
parents:
diff changeset
    87
    {
hgs
parents:
diff changeset
    88
    return iLastUriSeg;
hgs
parents:
diff changeset
    89
    }
hgs
parents:
diff changeset
    90
    
hgs
parents:
diff changeset
    91
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    92
// Sets the iExecuted member of the object
hgs
parents:
diff changeset
    93
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    94
//
hgs
parents:
diff changeset
    95
void CSmlDmAOCommandElement::SetExecuted( TBool aExecuted )
hgs
parents:
diff changeset
    96
    {
hgs
parents:
diff changeset
    97
    iExecuted = aExecuted;
hgs
parents:
diff changeset
    98
    }
hgs
parents:
diff changeset
    99
hgs
parents:
diff changeset
   100
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   101
// Sets the iStatus member of the object
hgs
parents:
diff changeset
   102
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   103
//
hgs
parents:
diff changeset
   104
void CSmlDmAOCommandElement::SetStatus( CSmlDmAdapter::TError aStatus )
hgs
parents:
diff changeset
   105
    {
hgs
parents:
diff changeset
   106
    iStatus = aStatus;
hgs
parents:
diff changeset
   107
    }
hgs
parents:
diff changeset
   108
    
hgs
parents:
diff changeset
   109
    
hgs
parents:
diff changeset
   110
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   111
// Sets the iData member of the object. Ownership of aData argument will be 
hgs
parents:
diff changeset
   112
// transfered to the CSmlDmAOCommandElement
hgs
parents:
diff changeset
   113
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   114
//
hgs
parents:
diff changeset
   115
void CSmlDmAOCommandElement::SetData( HBufC8* aData )
hgs
parents:
diff changeset
   116
    {
hgs
parents:
diff changeset
   117
    iData = aData;
hgs
parents:
diff changeset
   118
    }
hgs
parents:
diff changeset
   119