| Start/ | End/ | |||
| True | False | - | Line | Source |
| 1 | /* | |||
| 2 | * ============================================================================ | |||
| 3 | * Name : mccaparameter.cpp | |||
| 4 | * Part of : CCA / CCAClient | |||
| 5 | * Description : This is a class for creating data of contact | |||
| 6 | * for launching CCA application. | |||
| 7 | * Version : %version: 5 % << Don't touch! Updated by Synergy at check-out. | |||
| 8 | * | |||
| 9 | * Copyright © 2007 Nokia. All rights reserved. | |||
| 10 | * This material, including documentation and any related computer | |||
| 11 | * programs, is protected by copyright controlled by Nokia. All | |||
| 12 | * rights are reserved. Copying, including reproducing, storing, | |||
| 13 | * adapting or translating, any or all of this material requires the | |||
| 14 | * prior written consent of Nokia. This material also contains | |||
| 15 | * confidential information which may not be disclosed to others | |||
| 16 | * without the prior written consent of Nokia. | |||
| 17 | * ============================================================================ | |||
| 18 | * Template version: 4.2 | |||
| 19 | */ | |||
| 20 | ||||
| 21 | #include "s_mccaparameter.h" | |||
| 22 | ||||
| 23 | ||||
| 24 | /** @file mccaparameter.h | |||
| 25 | * | |||
| 26 | * MCCAParameter class is used to store, control and define how the CCA application is launched | |||
| 27 | * with the contact specified data. | |||
| 28 | * | |||
| 29 | * Example usage of the API: | |||
| 30 | * @code | |||
| 31 | * MCCAParameter* aParameter = TCCAFactory::NewParameterL() | |||
| 32 | * aParameter->SetConnectionFlag(ENormal); | |||
| 33 | * aParameter->SetContactDataFlag(EContactId); | |||
| 34 | * aParameter->SetContactDataL(aString); | |||
| 35 | * | |||
| 36 | * aParameter->SetLaunchedViewUid(aUid); | |||
| 37 | * | |||
| 38 | * @endcode | |||
| 39 | * | |||
| 40 | * @lib ccaclient | |||
| 41 | * @since S60 v5.0 | |||
| 42 | */ | |||
| 0 | 0 | - | 43 | MCCAParameter* MCCAParameterstub::NewL() |
| 44 | { | |||
| 45 | MCCAParameter* parameter = new(ELeave)MCCAParameterstub; | |||
| 46 | return parameter; | |||
| 47 | } | |||
| 48 | ||||
| 49 | /** | |||
| 50 | * Getter for the flags of connection. | |||
| 51 | * @since S60 5.0 | |||
| 52 | * @return the flags. | |||
| 53 | */ | |||
| 0 | 0 | - | 54 | MCCAParameter::TConnectionFlags MCCAParameterstub::ConnectionFlag() |
| 55 | { | |||
| 56 | ||||
| 57 | } | |||
| 58 | ||||
| 59 | /** | |||
| 60 | * Getter for the contact data flags. | |||
| 61 | * @since S60 5.0 | |||
| 62 | * @return the flags. | |||
| 63 | */ | |||
| 0 | 0 | - | 64 | MCCAParameter::TContactDataFlags MCCAParameterstub::ContactDataFlag() |
| 65 | { | |||
| 66 | ||||
| 67 | } | |||
| 68 | ||||
| 69 | /** | |||
| 70 | * Getter for the contact data. | |||
| 71 | * @leave KErrArgument if data not set. | |||
| 72 | * @since S60 5.0 | |||
| 73 | * @return the reference of contact data. | |||
| 74 | */ | |||
| 0 | 0 | - | 75 | HBufC& MCCAParameterstub::ContactDataL() |
| 76 | { | |||
| 77 | ||||
| 78 | } | |||
| 79 | ||||
| 80 | /** | |||
| 81 | * Getter for the view uid. | |||
| 82 | * @since S60 5.0 | |||
| 83 | * @return the Uid. | |||
| 84 | */ | |||
| 0 | 0 | - | 85 | TUid MCCAParameterstub::LaunchedViewUid() |
| 86 | { | |||
| 87 | ||||
| 88 | } | |||
| 89 | ||||
| 90 | /** | |||
| 91 | * Getter for the version. | |||
| 92 | * @since S60 5.0 | |||
| 93 | * @return the version. | |||
| 94 | */ | |||
| 0 | 0 | - | 95 | TInt32 MCCAParameterstub::Version() |
| 96 | { | |||
| 97 | ||||
| 98 | } | |||
| 99 | ||||
| 100 | /** | |||
| 101 | * Setter for the flag of connection. | |||
| 102 | * | |||
| 103 | * @see TConnectionFlags | |||
| 104 | * @since S60 5.0 | |||
| 105 | * @param aFlags: flags of connection | |||
| 106 | */ | |||
| 0 | 0 | - | 107 | void MCCAParameterstub::SetConnectionFlag(const MCCAParameter::TConnectionFlags aConnectionFlags) |
| 108 | { | |||
| 109 | ||||
| 110 | } | |||
| 111 | ||||
| 112 | /** | |||
| 113 | * Setter for the contact data flag. | |||
| 114 | * | |||
| 115 | * @see TContactDataFlags | |||
| 116 | * @since S60 5.0 | |||
| 117 | * @param aFlags: flags of connection | |||
| 118 | */ | |||
| 0 | 0 | - | 119 | void MCCAParameterstub::SetContactDataFlag(const MCCAParameter::TContactDataFlags aContactDataFlags) |
| 120 | { | |||
| 121 | } | |||
| 122 | ||||
| 123 | /** | |||
| 124 | * Setter for the contact data. | |||
| 125 | * If you are using TContactDataFlags::EContactLink, the MVPbkContactLink | |||
| 126 | * should be streamed with PackLC before given for this method. | |||
| 127 | * Ownership is NOT transferred. | |||
| 128 | * @see MVPbkContactLink from phonebook. | |||
| 129 | * @leave KErrNotFound if contact data flag is not | |||
| 130 | * set before calling this method. | |||
| 131 | * @see MCCAParameter::SetContactDataFlags | |||
| 132 | * @since S60 5.0 | |||
| 133 | * @param aContactData: given contact data. | |||
| 134 | */ | |||
| 0 | 0 | - | 135 | void MCCAParameterstub::SetContactDataL(const TDesC& aContactData) |
| 136 | { | |||
| 137 | } | |||
| 138 | ||||
| 139 | /** | |||
| 140 | * Setter for the launched view uid. Use this when there | |||
| 141 | * is need to get a particular view opened first on launch of CCA. | |||
| 142 | * If view uid is not set, CCA uses the default view. | |||
| 143 | * NOT IMPLEMENTED YET! | |||
| 144 | * @since S60 5.0 | |||
| 145 | * @param aContactData: given contact data. | |||
| 146 | */ | |||
| 0 | 0 | - | 147 | void MCCAParameterstub::SetLaunchedViewUid(const TUid aUid) |
| 148 | { | |||
| 149 | ||||
| 150 | } | |||
| 151 | ||||
| 0 | 0 | - | 152 | void MCCAParameterstub::Close() |
| 153 | { | |||
| 154 | ||||
| 155 | } | |||
| 156 | ||||
| 157 | ||||
| 158 | // End of File | |||
| 159 | ||||
| ***TER 0% (0/11) of SOURCE FILE s_mccaparameter.cpp | ||||