contextframework/cfw/inc/cfservices/cfcontextsourcecommandimpl.h
changeset 0 2e3d3ce01487
equal deleted inserted replaced
-1:000000000000 0:2e3d3ce01487
       
     1 /*
       
     2 * Copyright (c) 2008-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:  CCFContextSourceCommandImpl class declaration.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_CFCONTEXTSOURCECOMMANDIMPL_H
       
    20 #define C_CFCONTEXTSOURCECOMMANDIMPL_H
       
    21 
       
    22 
       
    23 // SYSTEM INCLUDE FILES
       
    24 #include <cfcontextsourcecommand.h>
       
    25 
       
    26 // USER INCLUDE FILES
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 
       
    30 // DATA TYPES
       
    31 
       
    32 // CLASS DECLARATION
       
    33 
       
    34 /**
       
    35  * Context source command interface implementation header.
       
    36  *
       
    37  * @lib CFServices
       
    38  * @since S60 5.0
       
    39  */
       
    40 NONSHARABLE_CLASS( CCFContextSourceCommandImpl ) :
       
    41     public CCFContextSourceCommand
       
    42 {
       
    43 public:
       
    44 
       
    45     /**
       
    46      * Symbian two phased constructors.
       
    47      *
       
    48      * @since S60 5.0
       
    49      * @param None.
       
    50      * @return CCFContextSourceCommandImpl
       
    51      */
       
    52     static CCFContextSourceCommandImpl* NewL();
       
    53     static CCFContextSourceCommandImpl* NewLC();
       
    54 
       
    55     /**
       
    56      * C++ destructor.
       
    57      */
       
    58     virtual ~CCFContextSourceCommandImpl();
       
    59 
       
    60 public: // From CCFContextSourceCommand
       
    61 
       
    62     /** @see CCFContextSourceCommand */
       
    63     virtual const TCFSourceCommandSenderId& Sender() const;
       
    64 
       
    65     /** @see CCFContextSourceCommand */
       
    66     virtual void SetSender( const TCFSourceCommandSenderId& aSender );
       
    67 
       
    68     /** @see CCFContextSourceCommand */
       
    69     virtual const TDesC& Name() const;
       
    70 
       
    71     /** @see CCFContextSourceCommand */
       
    72     virtual void SetNameL( const TDesC& aName );
       
    73 
       
    74     /** @see CCFContextSourceCommand */
       
    75     virtual TUid SourceUid() const;
       
    76 
       
    77     /** @see CCFContextSourceCommand */
       
    78     virtual const RKeyValueArray& Attributes() const;
       
    79 
       
    80     /** @see CCFContextSourceCommand */
       
    81     virtual void AddAttributeL( CCFKeyValuePair* aAttribute );
       
    82 
       
    83     /** @see CCFContextSourceCommand */
       
    84     virtual void AddAttributesL( RKeyValueArray& aAttributes );
       
    85 
       
    86     /** @see CCFContextSourceCommand */
       
    87     virtual const RSourceCommandParameterArray& Parameters() const;
       
    88 
       
    89     /** @see CCFContextSourceCommand */
       
    90     virtual void AddParameterL(
       
    91             CCFContextSourceCommandParameter* aParameter );
       
    92 
       
    93     /** @see CCFContextSourceCommand */
       
    94     virtual TInt Size() const;
       
    95 
       
    96     /** @see CCFContextSourceCommand */
       
    97     virtual void ExternalizeL( RWriteStream& aStream ) const;
       
    98 
       
    99     /** @see CCFContextSourceCommand */
       
   100     virtual void InternalizeL( RReadStream& aStream );
       
   101 
       
   102     /** @see CCFContextSourceCommand */
       
   103     virtual CCFContextSourceCommand* CloneL() const;
       
   104 
       
   105 private:
       
   106 
       
   107     CCFContextSourceCommandImpl();
       
   108     void ConstructL();
       
   109 
       
   110 private: // Data
       
   111 
       
   112     // Sender of the command.
       
   113     TCFSourceCommandSenderId iSender;
       
   114 
       
   115     // Command name; owned.
       
   116     HBufC* iName;
       
   117 
       
   118     // Command attributes; owned.
       
   119     RKeyValueArray iAttributes;
       
   120 
       
   121     // Command parameters; owned.
       
   122     RSourceCommandParameterArray iParameters;
       
   123 };
       
   124 
       
   125 #endif // C_CFCONTEXTSOURCECOMMANDIMPL_H