classicui_plat/extended_aiw_criteria_api/inc/AiwDialDataTypes.inl
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 /*
       
     2 * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:     Inline methods for AiwDialDataTypes.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 // ============================ MEMBER FUNCTIONS ===============================
       
    25 
       
    26 
       
    27 // -----------------------------------------------------------------------------
       
    28 // TAiwDialDataV1::TAiwDialDataV1
       
    29 // 
       
    30 // 
       
    31 // -----------------------------------------------------------------------------
       
    32 //
       
    33 TAiwDialDataV1::TAiwDialDataV1()
       
    34 
       
    35 // iTelNumber must be valid telephony number, i.e. must be changed to valid one.
       
    36 :   iTelNumber( KNullDesC ),
       
    37 // Optional parameters (below) can be left as they are if not needed.
       
    38     iCallType( EAiwVoice ),
       
    39     iName( KNullDesC ),
       
    40     iNumberType( KAiwDefaultNumberType ),
       
    41     iContactId( KAiwNoContact ),
       
    42     iWindowGroup( KAiwGoToIdle ),
       
    43     iRedial( KAiwRedialDefault ),
       
    44     iShowNumber( ETrue ),
       
    45     iAllowMatch( KAiwDefaultAllowMatch ),
       
    46     iEndOtherCalls( EFalse ),
       
    47     iEmergencyCall( EFalse ),
       
    48     iSubAddress( KNullDesC ),
       
    49     iSATCall( EFalse ),
       
    50     iBearer( KNullDesC8 ),
       
    51     iRemoveInvalidChars( EFalse )
       
    52 /*<branchInfo originator="janneluo" since="07-04-10" category="new_feature" error=”none”>
       
    53 <MCSS_5132_OFF_CYCLE_SW_INT>
       
    54 </branchInfo>*/
       
    55 // BRANCH 07-04-10 :janneluo
       
    56     ,iServiceId( 0 )
       
    57 // BRANCH_END 07-04-10 :janneluo
       
    58     {
       
    59     }
       
    60 
       
    61 
       
    62 // -----------------------------------------------------------------------------
       
    63 // TAiwDialDataV1::Reset
       
    64 // 
       
    65 // 
       
    66 // -----------------------------------------------------------------------------
       
    67 //
       
    68 void TAiwDialDataV1::Reset()
       
    69     {
       
    70     iTelNumber = KNullDesC;
       
    71 
       
    72     SetCallType( EAiwVoice );
       
    73     iName = KNullDesC;
       
    74     SetNumberType( KAiwDefaultNumberType );
       
    75     SetContactId( KAiwNoContact );
       
    76     SetWindowGroup( KAiwGoToIdle );
       
    77     SetRedial( KAiwRedialDefault );
       
    78     SetShowNumber( ETrue );
       
    79     SetAllowMatch( KAiwDefaultAllowMatch );
       
    80     SetEndOtherCalls( EFalse );
       
    81     SetEmergency( EFalse );
       
    82     iSubAddress = KNullDesC;
       
    83     SetSATCall( EFalse );
       
    84     iBearer = KNullDesC8;
       
    85     SetRemoveInvalidChars( EFalse );
       
    86     iContactItemField = NULL;
       
    87 /*<branchInfo originator="janneluo" since="07-04-10" category="new_feature" error=”none”>
       
    88 <MCSS_5132_OFF_CYCLE_SW_INT>
       
    89 </branchInfo>*/
       
    90 // BRANCH 07-04-10 :janneluo
       
    91     iServiceId = 0;
       
    92 // BRANCH_END 07-04-10 :janneluo
       
    93     }
       
    94 
       
    95 
       
    96 // -----------------------------------------------------------------------------
       
    97 // TAiwDialDataV1::SetTelephoneNumber
       
    98 // 
       
    99 // 
       
   100 // -----------------------------------------------------------------------------
       
   101 //
       
   102 void TAiwDialDataV1::SetTelephoneNumber( 
       
   103     const TAiwTelephoneNumber& aNumber )
       
   104     {
       
   105     iTelNumber = aNumber;
       
   106     }
       
   107 
       
   108 
       
   109 // -----------------------------------------------------------------------------
       
   110 // TAiwDialDataV1::SetCallType
       
   111 // 
       
   112 // 
       
   113 // -----------------------------------------------------------------------------
       
   114 //
       
   115 void TAiwDialDataV1::SetCallType( TAiwCallType aCallType )
       
   116     {
       
   117     iCallType = aCallType;
       
   118     }
       
   119 
       
   120 
       
   121 // -----------------------------------------------------------------------------
       
   122 // TAiwDialDataV1::SetName
       
   123 // 
       
   124 // 
       
   125 // -----------------------------------------------------------------------------
       
   126 //
       
   127 void TAiwDialDataV1::SetName( const TAiwNameBuffer& aName )
       
   128     {
       
   129     iName = aName;
       
   130     }
       
   131 
       
   132 
       
   133 // -----------------------------------------------------------------------------
       
   134 // TAiwDialDataV1::SetNumberType
       
   135 // 
       
   136 // 
       
   137 // -----------------------------------------------------------------------------
       
   138 //
       
   139 void TAiwDialDataV1::SetNumberType( TInt aNumberType )
       
   140     {
       
   141     iNumberType = aNumberType;
       
   142     }
       
   143 
       
   144 
       
   145 // -----------------------------------------------------------------------------
       
   146 // TAiwDialDataV1::SetContactId
       
   147 // 
       
   148 // 
       
   149 // -----------------------------------------------------------------------------
       
   150 //
       
   151 void TAiwDialDataV1::SetContactId( 
       
   152     TAiwContactId aContactId )
       
   153     {
       
   154     iContactId = aContactId;
       
   155     }
       
   156 
       
   157 
       
   158 // -----------------------------------------------------------------------------
       
   159 // TAiwDialDataV1::SetWindowGroup
       
   160 // 
       
   161 // 
       
   162 // -----------------------------------------------------------------------------
       
   163 //
       
   164 void TAiwDialDataV1::SetWindowGroup( TInt aWindowGroupId )
       
   165     {
       
   166     iWindowGroup = aWindowGroupId;
       
   167     }
       
   168 
       
   169 
       
   170 // -----------------------------------------------------------------------------
       
   171 // TAiwDialDataV1::SetRedial
       
   172 // 
       
   173 // 
       
   174 // -----------------------------------------------------------------------------
       
   175 //
       
   176 void TAiwDialDataV1::SetRedial( TInt aRedial )
       
   177     {
       
   178     iRedial = aRedial;
       
   179     }
       
   180 
       
   181 
       
   182 // -----------------------------------------------------------------------------
       
   183 // TAiwDialDataV1::SetShowNumber
       
   184 // 
       
   185 // 
       
   186 // -----------------------------------------------------------------------------
       
   187 //
       
   188 void TAiwDialDataV1::SetShowNumber( TBool aShowNumber )
       
   189     {
       
   190     iShowNumber = aShowNumber;
       
   191     }
       
   192 
       
   193 
       
   194 // -----------------------------------------------------------------------------
       
   195 // TAiwDialDataV1::SetAllowMatch
       
   196 // 
       
   197 // 
       
   198 // -----------------------------------------------------------------------------
       
   199 //
       
   200 void TAiwDialDataV1::SetAllowMatch( TBool aAllowMatch )
       
   201     {
       
   202     iAllowMatch = aAllowMatch;
       
   203     }
       
   204 
       
   205 
       
   206 // -----------------------------------------------------------------------------
       
   207 // TAiwDialDataV1::SetEndOtherCalls
       
   208 // 
       
   209 // 
       
   210 // -----------------------------------------------------------------------------
       
   211 //
       
   212 void TAiwDialDataV1::SetEndOtherCalls( TBool aEndCalls )
       
   213     {
       
   214     iEndOtherCalls = aEndCalls;
       
   215     }
       
   216 
       
   217 
       
   218 // -----------------------------------------------------------------------------
       
   219 // TAiwDialDataV1::SetEmergency
       
   220 // 
       
   221 // 
       
   222 // -----------------------------------------------------------------------------
       
   223 //
       
   224 void TAiwDialDataV1::SetEmergency( TBool aEmergency )
       
   225     {
       
   226     iEmergencyCall = aEmergency;
       
   227     }
       
   228 
       
   229 
       
   230 // -----------------------------------------------------------------------------
       
   231 // TAiwDialDataV1::SetSubAddress
       
   232 // 
       
   233 // 
       
   234 // -----------------------------------------------------------------------------
       
   235 //
       
   236 void TAiwDialDataV1::SetSubAddress( 
       
   237     const TAiwSubAddress& aSubAddress )
       
   238     {
       
   239     iSubAddress = aSubAddress;
       
   240     }
       
   241 
       
   242 
       
   243 // -----------------------------------------------------------------------------
       
   244 // TAiwDialDataV1::SetSATCall
       
   245 // 
       
   246 // 
       
   247 // -----------------------------------------------------------------------------
       
   248 //
       
   249 void TAiwDialDataV1::SetSATCall( TBool aSATCall )
       
   250     {
       
   251     iSATCall = aSATCall;
       
   252     }
       
   253 
       
   254 
       
   255 // -----------------------------------------------------------------------------
       
   256 // TAiwDialDataV1::SetBearer
       
   257 // 
       
   258 // 
       
   259 // -----------------------------------------------------------------------------
       
   260 //
       
   261 void TAiwDialDataV1::SetBearer( 
       
   262     const TAiwBearerCapability& aBearer )
       
   263     {
       
   264     iBearer = aBearer;
       
   265     }
       
   266 
       
   267 
       
   268 // -----------------------------------------------------------------------------
       
   269 // TAiwDialDataV1::SetRemoveInvalidChars
       
   270 // 
       
   271 // 
       
   272 // -----------------------------------------------------------------------------
       
   273 //
       
   274 void TAiwDialDataV1::SetRemoveInvalidChars( TBool aRemoveInvalidChars )
       
   275     {
       
   276     iRemoveInvalidChars = aRemoveInvalidChars;
       
   277     }
       
   278 
       
   279 
       
   280 // -----------------------------------------------------------------------------
       
   281 // TAiwDialDataV1::SetContactItemField
       
   282 // 
       
   283 // 
       
   284 // -----------------------------------------------------------------------------
       
   285 //
       
   286 void TAiwDialDataV1::SetContactItemField( const TAiwContactItemField& aContactItemField )
       
   287     {
       
   288     iContactItemField = &aContactItemField;
       
   289     }
       
   290 
       
   291 /*<branchInfo originator="janneluo" since="07-04-10" category="new_feature" error=”none”>
       
   292 <MCSS_5132_OFF_CYCLE_SW_INT>
       
   293 </branchInfo>*/
       
   294 // BRANCH 07-04-10 :janneluo
       
   295 // -----------------------------------------------------------------------------
       
   296 // TAiwDialDataV1::SetServiceId
       
   297 // 
       
   298 // 
       
   299 // -----------------------------------------------------------------------------
       
   300 //
       
   301 void TAiwDialDataV1::SetServiceId( TUint aServiceId )
       
   302     {
       
   303     iServiceId = aServiceId;
       
   304     }
       
   305 // BRANCH_END 07-04-10 :janneluo
       
   306 
       
   307 // -----------------------------------------------------------------------------
       
   308 // TAiwDialDataV1::TelephoneNumber
       
   309 // 
       
   310 // 
       
   311 // -----------------------------------------------------------------------------
       
   312 //
       
   313 const TAiwTelephoneNumber& 
       
   314     TAiwDialDataV1::TelephoneNumber() const
       
   315     {
       
   316     return iTelNumber;
       
   317     }
       
   318 
       
   319 
       
   320 // -----------------------------------------------------------------------------
       
   321 // TAiwDialDataV1::CallType
       
   322 // 
       
   323 // 
       
   324 // -----------------------------------------------------------------------------
       
   325 //
       
   326 TAiwCallType TAiwDialDataV1::CallType() const
       
   327     {
       
   328     return iCallType;
       
   329     }
       
   330 
       
   331 
       
   332 // -----------------------------------------------------------------------------
       
   333 // TAiwDialDataV1::Name
       
   334 // 
       
   335 // 
       
   336 // -----------------------------------------------------------------------------
       
   337 //
       
   338 const TAiwNameBuffer& TAiwDialDataV1::Name() const
       
   339     {
       
   340     return iName;
       
   341     }
       
   342 
       
   343 
       
   344 // -----------------------------------------------------------------------------
       
   345 // TAiwDialDataV1::NumberType
       
   346 // 
       
   347 // 
       
   348 // -----------------------------------------------------------------------------
       
   349 //
       
   350 TInt TAiwDialDataV1::NumberType() const
       
   351     {
       
   352     return iNumberType;
       
   353     }
       
   354 
       
   355 
       
   356 // -----------------------------------------------------------------------------
       
   357 // TAiwDialDataV1::ContactId
       
   358 // 
       
   359 // 
       
   360 // -----------------------------------------------------------------------------
       
   361 //
       
   362 TAiwContactId TAiwDialDataV1::ContactId() const
       
   363     {
       
   364     return iContactId;
       
   365     }
       
   366 
       
   367 
       
   368 // -----------------------------------------------------------------------------
       
   369 // TAiwDialDataV1::WindowGroupId
       
   370 // 
       
   371 // 
       
   372 // -----------------------------------------------------------------------------
       
   373 //
       
   374 TInt TAiwDialDataV1::WindowGroupId() const
       
   375     {
       
   376     return iWindowGroup;
       
   377     }
       
   378 
       
   379 
       
   380 // -----------------------------------------------------------------------------
       
   381 // TAiwDialDataV1::Redial
       
   382 // 
       
   383 // 
       
   384 // -----------------------------------------------------------------------------
       
   385 //
       
   386 TInt TAiwDialDataV1::Redial() const
       
   387     {
       
   388     return iRedial;
       
   389     }
       
   390 
       
   391 
       
   392 // -----------------------------------------------------------------------------
       
   393 // TAiwDialDataV1::ShowNumber
       
   394 // 
       
   395 // 
       
   396 // -----------------------------------------------------------------------------
       
   397 //
       
   398 TBool TAiwDialDataV1::ShowNumber() const
       
   399     {
       
   400     return iShowNumber;
       
   401     }
       
   402 
       
   403 
       
   404 // -----------------------------------------------------------------------------
       
   405 // TAiwDialDataV1::AllowMatch
       
   406 // 
       
   407 // 
       
   408 // -----------------------------------------------------------------------------
       
   409 //
       
   410 TBool TAiwDialDataV1::AllowMatch() const
       
   411     {
       
   412     return iAllowMatch;
       
   413     }
       
   414 
       
   415 
       
   416 // -----------------------------------------------------------------------------
       
   417 // TAiwDialDataV1::EndOtherCalls
       
   418 // 
       
   419 // 
       
   420 // -----------------------------------------------------------------------------
       
   421 //
       
   422 TBool TAiwDialDataV1::EndOtherCalls() const
       
   423     {
       
   424     return iEndOtherCalls;
       
   425     }
       
   426 
       
   427 
       
   428 // -----------------------------------------------------------------------------
       
   429 // TAiwDialDataV1::Emergency
       
   430 // 
       
   431 // 
       
   432 // -----------------------------------------------------------------------------
       
   433 //
       
   434 TBool TAiwDialDataV1::Emergency() const
       
   435     {
       
   436     return iEmergencyCall;
       
   437     }
       
   438 
       
   439 
       
   440 // -----------------------------------------------------------------------------
       
   441 // TAiwDialDataV1::SubAddress
       
   442 // 
       
   443 // 
       
   444 // -----------------------------------------------------------------------------
       
   445 //
       
   446 const TAiwSubAddress& TAiwDialDataV1::SubAddress() const
       
   447     {
       
   448     return iSubAddress;
       
   449     }
       
   450 
       
   451 
       
   452 // -----------------------------------------------------------------------------
       
   453 // TAiwDialDataV1::SATCall
       
   454 // 
       
   455 // 
       
   456 // -----------------------------------------------------------------------------
       
   457 //
       
   458 TBool TAiwDialDataV1::SATCall() const
       
   459     {
       
   460     return iSATCall;
       
   461     }
       
   462 
       
   463 
       
   464 // -----------------------------------------------------------------------------
       
   465 // TAiwDialDataV1::Bearer
       
   466 // 
       
   467 // 
       
   468 // -----------------------------------------------------------------------------
       
   469 //
       
   470 const TAiwBearerCapability& TAiwDialDataV1::Bearer() const
       
   471     {
       
   472     return iBearer;
       
   473     }
       
   474 
       
   475 
       
   476 // -----------------------------------------------------------------------------
       
   477 // TAiwDialDataV1::RemoveInvalidChars
       
   478 // 
       
   479 // 
       
   480 // -----------------------------------------------------------------------------
       
   481 //
       
   482 TBool TAiwDialDataV1::RemoveInvalidChars() const
       
   483     {
       
   484     return iRemoveInvalidChars;
       
   485     }
       
   486 
       
   487 // -----------------------------------------------------------------------------
       
   488 // TAiwDialDataV1::ContactItemField
       
   489 // 
       
   490 // 
       
   491 // -----------------------------------------------------------------------------
       
   492 //
       
   493 const TAiwContactItemField* TAiwDialDataV1::ContactItemField() const
       
   494     {
       
   495     return iContactItemField;
       
   496     }
       
   497 
       
   498 /*<branchInfo originator="janneluo" since="07-04-10" category="new_feature" error=”none”>
       
   499 <MCSS_5132_OFF_CYCLE_SW_INT>
       
   500 </branchInfo>*/
       
   501 // BRANCH 07-04-10 :janneluo
       
   502 // -----------------------------------------------------------------------------
       
   503 // TAiwDialDataV1::ServiceId
       
   504 // 
       
   505 // 
       
   506 // -----------------------------------------------------------------------------
       
   507 //
       
   508 TUint TAiwDialDataV1::ServiceId() const
       
   509     {
       
   510     return iServiceId;
       
   511     }
       
   512 // BRANCH_END 07-04-10 :janneluo
       
   513 //  End of File