contextutility/src/hgcontextutility.cpp
changeset 0 79c6a41cd166
equal deleted inserted replaced
-1:000000000000 0:79c6a41cd166
       
     1 /*
       
     2 * Copyright (c) 2008 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:  Context publishing helper dll
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include <hg/hgcontextutility.h>
       
    20 #include "hgcontextutilityimpl.h"
       
    21 
       
    22 // -----------------------------------------------------------------------------
       
    23 // CHgContextUtility::NewL
       
    24 // -----------------------------------------------------------------------------
       
    25 //
       
    26 EXPORT_C CHgContextUtility* CHgContextUtility::NewL()
       
    27     {
       
    28     CHgContextUtility* self = NewLC();
       
    29     CleanupStack::Pop( self );
       
    30     return self;
       
    31     }
       
    32 
       
    33 // -----------------------------------------------------------------------------
       
    34 // CHgContextUtility::NewLC
       
    35 // -----------------------------------------------------------------------------
       
    36 //
       
    37 EXPORT_C CHgContextUtility* CHgContextUtility::NewLC()
       
    38     {
       
    39     CHgContextUtility* self = new ( ELeave ) CHgContextUtility;
       
    40     CleanupStack::PushL( self );
       
    41     self->ConstructL();
       
    42     return self;
       
    43     }
       
    44 
       
    45 // -----------------------------------------------------------------------------
       
    46 // CHgContextUtility::CHgContextUtility
       
    47 // -----------------------------------------------------------------------------
       
    48 //
       
    49 CHgContextUtility::CHgContextUtility()
       
    50     {
       
    51     }
       
    52 
       
    53 // -----------------------------------------------------------------------------
       
    54 // CHgContextUtility::ConstructL
       
    55 // -----------------------------------------------------------------------------
       
    56 //
       
    57 void CHgContextUtility::ConstructL()
       
    58     {
       
    59     BaseConstructL();
       
    60     }
       
    61 
       
    62 // -----------------------------------------------------------------------------
       
    63 // CHgContextUtility::~CHgContextUtility
       
    64 // -----------------------------------------------------------------------------
       
    65 //
       
    66 EXPORT_C CHgContextUtility::~CHgContextUtility()
       
    67     {
       
    68     }
       
    69 
       
    70 // -----------------------------------------------------------------------------
       
    71 // CHgContextUtility::PublishContactContextL
       
    72 // -----------------------------------------------------------------------------
       
    73 //
       
    74 EXPORT_C void CHgContextUtility::PublishContactContextL(
       
    75         const MVPbkStoreContact& aContact,
       
    76         const TTimeIntervalMicroSeconds32& aDelay )
       
    77     {
       
    78     iImpl->PublishContactContextL( aContact, aDelay );
       
    79     }
       
    80 
       
    81 // -----------------------------------------------------------------------------
       
    82 // CHgContextUtility::PublishContactContextL
       
    83 // -----------------------------------------------------------------------------
       
    84 //
       
    85 EXPORT_C void CHgContextUtility::PublishContactContextL(
       
    86         const MVPbkContactLink& aContactLink,
       
    87         const TTimeIntervalMicroSeconds32& aDelay )
       
    88     {
       
    89     iImpl->PublishContactContextL( aContactLink, aDelay );
       
    90     }
       
    91 
       
    92 // -----------------------------------------------------------------------------
       
    93 // CHgContextUtility::PublishContactContextL
       
    94 // -----------------------------------------------------------------------------
       
    95 //
       
    96 EXPORT_C void CHgContextUtility::PublishContactContextL(
       
    97         const TDesC& aContactName,
       
    98         const TTimeIntervalMicroSeconds32& aDelay )
       
    99     {
       
   100     iImpl->PublishContactContextL( aContactName, aDelay );
       
   101     }
       
   102 
       
   103 // -----------------------------------------------------------------------------
       
   104 // CHgContextUtility::PublishContactContextL
       
   105 // -----------------------------------------------------------------------------
       
   106 //
       
   107 EXPORT_C void CHgContextUtility::PublishContactContextL(
       
   108         const RPointerArray<MVPbkStoreContact>& aContacts,
       
   109         const TTimeIntervalMicroSeconds32& aDelay )
       
   110     {
       
   111     iImpl->PublishContactContextL( aContacts, aDelay );
       
   112     }
       
   113 
       
   114 // -----------------------------------------------------------------------------
       
   115 // CHgContextUtility::PublishContactContextL
       
   116 // -----------------------------------------------------------------------------
       
   117 //
       
   118 EXPORT_C void CHgContextUtility::PublishContactContextL(
       
   119         const CVPbkContactLinkArray& aContactLinks,
       
   120         const TTimeIntervalMicroSeconds32& aDelay )
       
   121     {
       
   122     iImpl->PublishContactContextL( aContactLinks, aDelay );
       
   123     }
       
   124 
       
   125 // -----------------------------------------------------------------------------
       
   126 // CHgContextUtility::PublishContactContextL
       
   127 // -----------------------------------------------------------------------------
       
   128 //
       
   129 EXPORT_C void CHgContextUtility::PublishContactContextL(
       
   130         const MDesCArray& aContactNames,
       
   131         const TTimeIntervalMicroSeconds32& aDelay )
       
   132     {
       
   133     iImpl->PublishContactContextL( aContactNames, aDelay );
       
   134     }
       
   135 
       
   136 // -----------------------------------------------------------------------------
       
   137 // CHgContextUtility::PublishTextContextL
       
   138 // -----------------------------------------------------------------------------
       
   139 //
       
   140 EXPORT_C void CHgContextUtility::PublishTextContextL( const TDesC& aText,
       
   141         const TTimeIntervalMicroSeconds32& aDelay )
       
   142     {
       
   143     iImpl->PublishTextContextL( aText, aDelay );
       
   144     }
       
   145 
       
   146 // -----------------------------------------------------------------------------
       
   147 // CHgContextUtility::PublishUrlContextL
       
   148 // -----------------------------------------------------------------------------
       
   149 //   
       
   150 EXPORT_C void CHgContextUtility::PublishUrlContextL( const TDesC& aUrl,
       
   151         const TTimeIntervalMicroSeconds32& aDelay )
       
   152     {
       
   153     iImpl->PublishUrlContextL( aUrl, aDelay );
       
   154     }
       
   155 
       
   156 // -----------------------------------------------------------------------------
       
   157 // CHgContextUtility::PublishTimeContextL
       
   158 // -----------------------------------------------------------------------------
       
   159 //
       
   160 EXPORT_C void CHgContextUtility::PublishTimeContextL( const TTime& aTime,
       
   161         const TTimeIntervalMicroSeconds32& aDelay )
       
   162     {
       
   163     iImpl->PublishTimeContextL( aTime, aDelay );
       
   164     }
       
   165 
       
   166 // -----------------------------------------------------------------------------
       
   167 // CHgContextUtility::PublishPhotoContextL
       
   168 // -----------------------------------------------------------------------------
       
   169 //
       
   170 EXPORT_C void CHgContextUtility::PublishPhotoContextL(
       
   171         const TDesC& aFilename,
       
   172         const TTimeIntervalMicroSeconds32& aDelay )
       
   173     {
       
   174     iImpl->PublishPhotoContextL( aFilename, aDelay );
       
   175     }
       
   176 
       
   177 // -----------------------------------------------------------------------------
       
   178 // CHgContextUtility::PublishPhotoContextL
       
   179 // -----------------------------------------------------------------------------
       
   180 //
       
   181 EXPORT_C void CHgContextUtility::PublishPhotoContextL(
       
   182         TItemId aMdeItemId,
       
   183         CMdESession& aMdeSession,
       
   184         const TTimeIntervalMicroSeconds32& aDelay )
       
   185     {
       
   186     iImpl->PublishPhotoContextL( aMdeItemId, aMdeSession, aDelay );
       
   187     }
       
   188 
       
   189 // -----------------------------------------------------------------------------
       
   190 // CHgContextUtility::PublishTvContextL
       
   191 // -----------------------------------------------------------------------------
       
   192 //
       
   193 EXPORT_C void CHgContextUtility::PublishTvContextL( const TDesC& aChannelName,
       
   194         const TDesC& aProgramName, const TDesC& aProgramDescription,
       
   195         const TDesC& aGenre )
       
   196     {
       
   197     iImpl->PublishTvContextL( aChannelName, aProgramName,
       
   198         aProgramDescription, aGenre );
       
   199     }
       
   200 
       
   201 // -----------------------------------------------------------------------------
       
   202 // CHgContextUtility::PublishServiceIdL
       
   203 // -----------------------------------------------------------------------------
       
   204 //
       
   205 EXPORT_C void CHgContextUtility::PublishServiceIdL( const TDesC& aServiceId,
       
   206         const TDesC& aAccountId,
       
   207         const TTimeIntervalMicroSeconds32& aDelay )
       
   208     {
       
   209     iImpl->PublishServiceIdL( aServiceId, aAccountId, aDelay );
       
   210     }
       
   211 
       
   212 // -----------------------------------------------------------------------------
       
   213 // CHgContextUtility::RePublishWhenFgL
       
   214 // -----------------------------------------------------------------------------
       
   215 //
       
   216 EXPORT_C void CHgContextUtility::RePublishWhenFgL( TBool aEnable )
       
   217     {
       
   218     iImpl->RePublishWhenFgL( aEnable );
       
   219     }
       
   220 
       
   221 // -----------------------------------------------------------------------------
       
   222 // CHgContextUtility::AllowPublishFromBackground
       
   223 // -----------------------------------------------------------------------------
       
   224 //
       
   225 EXPORT_C void CHgContextUtility::AllowPublishFromBackground( TBool aAllow )
       
   226     {
       
   227     iImpl->AllowPublishFromBackground( aAllow );
       
   228     }
       
   229 
       
   230 // -----------------------------------------------------------------------------
       
   231 // CHgContextUtility::AddMusicContextInfoL
       
   232 // -----------------------------------------------------------------------------
       
   233 //
       
   234 EXPORT_C void CHgContextUtility::AddMusicContextInfoL( 
       
   235     const TDesC& aKey, const TDesC& aData )
       
   236     {
       
   237     iImpl->AddMusicContextInfoL( aKey, aData );
       
   238     }
       
   239 
       
   240 // -----------------------------------------------------------------------------
       
   241 // CHgContextUtility::PublishMusicContextL
       
   242 // -----------------------------------------------------------------------------
       
   243 //
       
   244 EXPORT_C void CHgContextUtility::PublishMusicContextL( 
       
   245     const TTimeIntervalMicroSeconds32& aDelay )
       
   246     {
       
   247     iImpl->PublishMusicContextL( aDelay );
       
   248     }
       
   249 
       
   250 // -----------------------------------------------------------------------------
       
   251 // CHgContextUtility::PublishRadioContextL
       
   252 // -----------------------------------------------------------------------------
       
   253 //
       
   254 EXPORT_C void CHgContextUtility::PublishRadioContextL( 
       
   255         const TDesC& aRadioName,
       
   256         const TDesC& aRadioUrl,
       
   257         const TDesC& aRadioFrequency,
       
   258         const TDesC& aRadioRDSPI )
       
   259     {
       
   260     iImpl->PublishRadioContextL( aRadioName, aRadioUrl,
       
   261             aRadioFrequency, aRadioRDSPI );
       
   262     }
       
   263 
       
   264 // -----------------------------------------------------------------------------
       
   265 // CHgContextUtility::BuildCombinedStringL
       
   266 // -----------------------------------------------------------------------------
       
   267 EXPORT_C HBufC* CHgContextUtility::BuildCombinedStringL( const MDesCArray& aArray )
       
   268 {
       
   269     return CHgContextUtilityImpl::BuildCombinedStringL(aArray);
       
   270 }
       
   271 
       
   272 // -----------------------------------------------------------------------------
       
   273 // CHgContextUtility::SplitCombinedStringL
       
   274 // -----------------------------------------------------------------------------
       
   275 EXPORT_C void CHgContextUtility::SplitCombinedStringL( const TDesC& aString,
       
   276         CDesCArray& aArray )
       
   277 {
       
   278     CHgContextUtilityImpl::SplitCombinedStringL(aString, aArray);
       
   279 }
       
   280 //
       
   281 // end of file