messagingfw/senduiservices/src/CSendingServiceInfo.cpp
branchRCL_3
changeset 23 d51193d814ea
parent 0 8e480a14352b
equal deleted inserted replaced
22:d2c4c66342f3 23:d51193d814ea
       
     1 /*
       
     2 * Copyright (c) 2002-2004 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:   Encapsulates the ECom plugged sending service data.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 // INCLUDE FILES
       
    22 #include <CSendingServiceInfo.h>
       
    23 #include "SendingServiceInfoImpl.h"
       
    24 
       
    25 
       
    26 // ============================ MEMBER FUNCTIONS ===============================
       
    27 
       
    28 // -----------------------------------------------------------------------------
       
    29 // CSendingServiceInfo::CSendingServiceInfo
       
    30 // C++ default constructor can NOT contain any code, that
       
    31 // might leave.
       
    32 // -----------------------------------------------------------------------------
       
    33 //
       
    34 CSendingServiceInfo::CSendingServiceInfo()
       
    35     {
       
    36     }
       
    37 
       
    38 // -----------------------------------------------------------------------------
       
    39 // CSendingServiceInfo::ConstructL
       
    40 // Symbian 2nd phase constructor can leave.
       
    41 // -----------------------------------------------------------------------------
       
    42 //
       
    43 void CSendingServiceInfo::ConstructL()
       
    44     {
       
    45     iServiceInfoImpl = CSendingServiceInfoImpl::NewL();
       
    46     }
       
    47 
       
    48 // -----------------------------------------------------------------------------
       
    49 // CSendingServiceInfo::NewL
       
    50 // Two-phased constructor.
       
    51 // -----------------------------------------------------------------------------
       
    52 //
       
    53 EXPORT_C CSendingServiceInfo* CSendingServiceInfo::NewL()
       
    54     {
       
    55     CSendingServiceInfo* self = CSendingServiceInfo::NewLC();
       
    56     
       
    57     CleanupStack::Pop( self );
       
    58 
       
    59     return self;
       
    60     }
       
    61 
       
    62 // ---------------------------------------------------------
       
    63 // CSendingServiceInfo::NewLC
       
    64 // Two-phased constructor.
       
    65 // ---------------------------------------------------------
       
    66 //
       
    67 EXPORT_C CSendingServiceInfo* CSendingServiceInfo::NewLC()
       
    68     {
       
    69     CSendingServiceInfo* self = new (ELeave) CSendingServiceInfo;
       
    70 
       
    71     CleanupStack::PushL( self );
       
    72     self->ConstructL();
       
    73 
       
    74     return self;
       
    75     }
       
    76 
       
    77 
       
    78 // Destructor
       
    79 EXPORT_C CSendingServiceInfo::~CSendingServiceInfo()
       
    80     {
       
    81     delete iServiceInfoImpl;
       
    82     }
       
    83 
       
    84 // -----------------------------------------------------------------------------
       
    85 // CSendingServiceInfo::CopyLC
       
    86 // Creates a copy of CSendingServiceInfo object.
       
    87 // (other items were commented in a header).
       
    88 // -----------------------------------------------------------------------------
       
    89 //
       
    90 EXPORT_C CSendingServiceInfo* CSendingServiceInfo::CopyLC() const
       
    91     {
       
    92     CSendingServiceInfo* serviceInfo = new(ELeave)CSendingServiceInfo;
       
    93     CleanupStack::PushL( serviceInfo );
       
    94 
       
    95     serviceInfo->iServiceInfoImpl = iServiceInfoImpl->CopyL();
       
    96 
       
    97     return serviceInfo;
       
    98     }
       
    99 
       
   100 // -----------------------------------------------------------------------------
       
   101 // CSendingServiceInfo::SetServiceNameL
       
   102 // Sets service human readable name.
       
   103 // (other items were commented in a header).
       
   104 // -----------------------------------------------------------------------------
       
   105 //
       
   106 EXPORT_C void CSendingServiceInfo::SetServiceNameL( const TDesC& aServiceName )
       
   107     {
       
   108     iServiceInfoImpl->SetServiceNameL( aServiceName );
       
   109     }
       
   110 
       
   111 // -----------------------------------------------------------------------------
       
   112 // CSendingServiceInfo::ServiceName
       
   113 // Returns service human readable name.
       
   114 // (other items were commented in a header).
       
   115 // -----------------------------------------------------------------------------
       
   116 //
       
   117 EXPORT_C const TPtrC CSendingServiceInfo::ServiceName() const
       
   118     {
       
   119     return iServiceInfoImpl->ServiceName();
       
   120     }
       
   121 
       
   122 // -----------------------------------------------------------------------------
       
   123 // CSendingServiceInfo::SetServiceMenuNameL
       
   124 // Sets service human readable name for the "Send"-menu.
       
   125 // (other items were commented in a header).
       
   126 // -----------------------------------------------------------------------------
       
   127 //
       
   128 EXPORT_C void CSendingServiceInfo::SetServiceMenuNameL(
       
   129     const TDesC& aServiceMenuName )
       
   130     {
       
   131     iServiceInfoImpl->SetServiceMenuNameL( aServiceMenuName );
       
   132     }
       
   133 
       
   134 // -----------------------------------------------------------------------------
       
   135 // CSendingServiceInfo::ServiceMenuName
       
   136 // Returns service human readable name for the "Send"-menu.
       
   137 // (other items were commented in a header).
       
   138 // -----------------------------------------------------------------------------
       
   139 //
       
   140 EXPORT_C const TPtrC CSendingServiceInfo::ServiceMenuName() const
       
   141     {
       
   142     return iServiceInfoImpl->ServiceMenuName();
       
   143     }
       
   144 
       
   145 // -----------------------------------------------------------------------------
       
   146 // CSendingServiceInfo::SetServiceAddressL
       
   147 // Sets service address.
       
   148 // (other items were commented in a header).
       
   149 // -----------------------------------------------------------------------------
       
   150 //
       
   151 EXPORT_C void CSendingServiceInfo::SetServiceAddressL(
       
   152     const TDesC& aServiceAddress )
       
   153     {
       
   154     iServiceInfoImpl->SetServiceAddressL( aServiceAddress );
       
   155     }
       
   156 
       
   157 // -----------------------------------------------------------------------------
       
   158 // CSendingServiceInfo::ServiceAddress
       
   159 // Returns service address.
       
   160 // (other items were commented in a header).
       
   161 // -----------------------------------------------------------------------------
       
   162 //
       
   163 EXPORT_C const TPtrC CSendingServiceInfo::ServiceAddress() const
       
   164     {
       
   165     return iServiceInfoImpl->ServiceAddress();
       
   166     }
       
   167 
       
   168 // -----------------------------------------------------------------------------
       
   169 // CSendingServiceInfo::SetServiceId
       
   170 // Sets service id.
       
   171 // (other items were commented in a header).
       
   172 // -----------------------------------------------------------------------------
       
   173 //
       
   174 EXPORT_C void CSendingServiceInfo::SetServiceId( TUid aServiceId )
       
   175     {
       
   176     iServiceInfoImpl->SetServiceId( aServiceId );
       
   177     }
       
   178 
       
   179 // -----------------------------------------------------------------------------
       
   180 // CSendingServiceInfo::ServiceId
       
   181 // Returns service id.
       
   182 // (other items were commented in a header).
       
   183 // -----------------------------------------------------------------------------
       
   184 //
       
   185 EXPORT_C TUid CSendingServiceInfo::ServiceId() const
       
   186     {
       
   187     return iServiceInfoImpl->ServiceId();
       
   188     }
       
   189 
       
   190 
       
   191 // -----------------------------------------------------------------------------
       
   192 // CSendingServiceInfo::ServiceId
       
   193 // Returns service id.
       
   194 // (other items were commented in a header).
       
   195 // -----------------------------------------------------------------------------
       
   196 //
       
   197 EXPORT_C void CSendingServiceInfo::SetTechnologyTypeId( TUid aTechnologyType )
       
   198     {
       
   199     return iServiceInfoImpl->SetTechnologyTypeId( aTechnologyType );
       
   200     }
       
   201 
       
   202 // -----------------------------------------------------------------------------
       
   203 // CSendingServiceInfo::ServiceId
       
   204 // Returns service id.
       
   205 // (other items were commented in a header).
       
   206 // -----------------------------------------------------------------------------
       
   207 //
       
   208 EXPORT_C TUid CSendingServiceInfo::TechnologyTypeId() const
       
   209     {
       
   210     return iServiceInfoImpl->TechnologyTypeId();
       
   211     }
       
   212 
       
   213 
       
   214 // -----------------------------------------------------------------------------
       
   215 // CSendingServiceInfo::SetServiceProviderId
       
   216 // Sets service provider id.
       
   217 // (other items were commented in a header).
       
   218 // -----------------------------------------------------------------------------
       
   219 //
       
   220 EXPORT_C void CSendingServiceInfo::SetServiceProviderId( TUid aServiceProviderId )
       
   221     {
       
   222     iServiceInfoImpl->SetServiceProviderId( aServiceProviderId );
       
   223     }
       
   224 
       
   225 // -----------------------------------------------------------------------------
       
   226 // CSendingServiceInfo::ServiceProviderId
       
   227 // Returns service provider id.
       
   228 // (other items were commented in a header).
       
   229 // -----------------------------------------------------------------------------
       
   230 //
       
   231 EXPORT_C TUid CSendingServiceInfo::ServiceProviderId() const
       
   232     {
       
   233     return iServiceInfoImpl->ServiceProviderId();
       
   234     }
       
   235 
       
   236 // -----------------------------------------------------------------------------
       
   237 // CSendingServiceInfo::SetServiceCapabilities
       
   238 // Set service sending capabilities.
       
   239 // (other items were commented in a header).
       
   240 // -----------------------------------------------------------------------------
       
   241 //
       
   242 EXPORT_C void CSendingServiceInfo::SetServiceCapabilities(
       
   243     TSendingCapabilities aServiceCapabilities )
       
   244     {
       
   245     iServiceInfoImpl->SetServiceCapabilities( aServiceCapabilities );
       
   246     }
       
   247 
       
   248 // -----------------------------------------------------------------------------
       
   249 // CSendingServiceInfo::ServiceCapabilities
       
   250 // Returns service sending capabilities.
       
   251 // (other items were commented in a header).
       
   252 // -----------------------------------------------------------------------------
       
   253 //
       
   254 EXPORT_C TSendingCapabilities CSendingServiceInfo::ServiceCapabilities() const
       
   255     {
       
   256     return iServiceInfoImpl->ServiceCapabilities();
       
   257     }
       
   258 
       
   259 // -----------------------------------------------------------------------------
       
   260 // CSendingServiceInfo::SetServiceCapabilities
       
   261 // Set service sending capabilities.
       
   262 // (other items were commented in a header).
       
   263 // -----------------------------------------------------------------------------
       
   264 //
       
   265 EXPORT_C void CSendingServiceInfo::SetServiceFeatures(
       
   266     TInt aServiceFeatures )
       
   267     {
       
   268     iServiceInfoImpl->SetServiceFeatures( aServiceFeatures );
       
   269     }
       
   270 
       
   271 // -----------------------------------------------------------------------------
       
   272 // CSendingServiceInfo::ServiceCapabilities
       
   273 // Returns service sending capabilities.
       
   274 // (other items were commented in a header).
       
   275 // -----------------------------------------------------------------------------
       
   276 //
       
   277 EXPORT_C TInt CSendingServiceInfo::ServiceFeatures() const
       
   278     {
       
   279     return iServiceInfoImpl->ServiceFeatures();
       
   280     }
       
   281 //  End of File