creator/inc/creator_contactelement.h
changeset 0 d6fe6244b863
equal deleted inserted replaced
-1:000000000000 0:d6fe6244b863
       
     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:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CREATORCONTACTELEMENT_H_
       
    21 #define CREATORCONTACTELEMENT_H_
       
    22 
       
    23 #include "creator_scriptelement.h"
       
    24 
       
    25 namespace creatorcontact
       
    26 { 
       
    27     _LIT(KContact, "contact");
       
    28     _LIT(KContactSet, "contact-set");
       
    29     _LIT(KContactGroup, "contactgroup");
       
    30     _LIT(KMembers, "members");
       
    31     _LIT(KName, "name");
       
    32     
       
    33     // Contact field elements:
       
    34     _LIT(KFirstname, "firstname");
       
    35     _LIT(KLastname, "lastname");
       
    36     _LIT(KFirstnameReading, "firstnamereading");
       
    37     _LIT(KLastnameReading, "lastnamereading");
       
    38     _LIT(KPrefix, "prefix");
       
    39     _LIT(KSuffix, "suffix");
       
    40     _LIT(KSecondname, "secondname");
       
    41     _LIT(KLandphoneHome, "landphonehome");
       
    42     
       
    43     _LIT(KMobilephoneHome, "mobilephonehome");
       
    44     _LIT(KVideonumberHome, "videonumberhome");
       
    45     _LIT(KFaxnumberHome, "faxnumberhome");
       
    46     _LIT(KVoipHome, "voiphome");
       
    47     _LIT(KEmailHome, "emailhome");
       
    48     _LIT(KUrlHome, "urlhome");
       
    49     _LIT(KAddrlabelHome, "addrlabelhome");
       
    50     _LIT(KAddrpoHome, "addrpohome");
       
    51     
       
    52     _LIT(KAddrextHome, "addrexthome");
       
    53     _LIT(KAddrstreetHome, "addrstreethome");
       
    54     _LIT(KAddrlocalHome, "addrlocalhome");
       
    55     _LIT(KAddrregionHome, "addrregionhome");
       
    56     _LIT(KAddrpostcodeHome, "addrpostcodehome");
       
    57     _LIT(KAddrcountryHome, "addrcountryhome");
       
    58     _LIT(KJobtitle, "jobtitle");
       
    59     _LIT(KCompanyname, "company");
       
    60     
       
    61     _LIT(KLandphoneWork, "landphonework");
       
    62     _LIT(KMobilephoneWork, "mobilephonework");
       
    63     _LIT(KVideonumberWork, "videonumberwork");
       
    64     _LIT(KFaxnumberWork, "faxnumberwork");
       
    65     _LIT(KVoipWork, "voipwork");
       
    66     _LIT(KEmailWork, "emailwork");
       
    67     _LIT(KUrlWork, "urlwork");
       
    68     _LIT(KAddrlabelWork, "addrlabelwork");
       
    69     
       
    70     _LIT(KAddrpoWork, "addrpowork");
       
    71     _LIT(KAddrextWork, "addrextwork");
       
    72     _LIT(KAddrstreetWork, "addrstreetwork");
       
    73     _LIT(KAddrlocalWork, "addrlocalwork");
       
    74     _LIT(KAddrregionWork, "addrregionwork");
       
    75     _LIT(KAddrpostcodeWork, "addrpostcodework");
       
    76     _LIT(KAddrcountryWork, "addrcountrywork");
       
    77     _LIT(KLandphoneGen, "landphonegen");
       
    78     
       
    79     _LIT(KMobilephoneGen, "mobilephonegen");
       
    80     _LIT(KVideonumberGen, "videonumbergen");
       
    81     _LIT(KFaxnumberGen, "faxnumbergen");
       
    82     _LIT(KVoipGen, "voipgen");
       
    83     _LIT(KPoc, "poc");
       
    84     _LIT(KSwis, "swis");
       
    85     _LIT(KSip, "sip");
       
    86     _LIT(KEmailGen, "emailgen");
       
    87     
       
    88     _LIT(KUrlGen, "urlgen");
       
    89     _LIT(KAddrlabelGen, "addrlabelgen");
       
    90     _LIT(KAddrpoGen, "addrpogen");
       
    91     _LIT(KAddrextGen, "addrextgen");
       
    92     _LIT(KAddrstreetGen, "addrstreetgen");
       
    93     _LIT(KAddrlocalGen, "addrlocalgen");
       
    94     _LIT(KAddrregionGen, "addrregiongen");
       
    95     _LIT(KAddrpostcodeGen, "addrpostcodegen");
       
    96     
       
    97     _LIT(KAddrcountryGen, "addrcountrygen");
       
    98     _LIT(KPagerNumber, "pagernumber");
       
    99     _LIT(KDtmfString, "dtmfstring");
       
   100     _LIT(KWvAddress, "wvaddress");
       
   101     _LIT(KDate, "date");
       
   102     _LIT(KNote, "note");
       
   103     _LIT(KThumbnailPath, "thumbnailpath");
       
   104     _LIT(KThumbnailId, "thumbnailid");
       
   105     _LIT(KRingTone, "ringtonepath");
       
   106     _LIT(KRingToneId, "ringtoneid");
       
   107     
       
   108     _LIT(KCallerobjImg, "callerobjimg");
       
   109     _LIT(KCallerobjText, "callerobjtext");
       
   110     _LIT(KMiddlename, "middlename");
       
   111     _LIT(KDepartment, "department");
       
   112     _LIT(KAsstname, "asstname");
       
   113     _LIT(KSpouse, "spouse");
       
   114     _LIT(KChildren, "children");
       
   115     _LIT(KAsstphone, "asstphone");
       
   116     
       
   117     _LIT(KCarphone, "caphone");
       
   118     _LIT(KAnniversary, "anniversary");
       
   119     _LIT(KSyncclass, "synchronization");
       
   120     _LIT(KLocPrivacy, "locprivacy");
       
   121     _LIT(KGenlabel, "genlabel");
       
   122 }
       
   123 /**
       
   124  * Contact elements
       
   125  */
       
   126 
       
   127 /**
       
   128  * Base class for contact elements
       
   129  */
       
   130 class CCreatorContactElementBase : public CCreatorScriptElement
       
   131 {
       
   132 public:
       
   133     static CCreatorContactElementBase* NewL(CCreatorEngine* aEngine, const TDesC& aName, const TDesC& aContext = KNullDesC);
       
   134 protected:
       
   135     CCreatorContactElementBase(CCreatorEngine* aEngine);
       
   136 };
       
   137 
       
   138 /**
       
   139  * Contact element
       
   140  */
       
   141 class CCreatorContactElement : public CCreatorContactElementBase
       
   142 {
       
   143 public:
       
   144     static CCreatorContactElement* NewL(CCreatorEngine* aEngine, const TDesC& aName, const TDesC& aContext = KNullDesC);
       
   145     void ExecuteCommandL();
       
   146 protected:
       
   147     CCreatorContactElement(CCreatorEngine* aEngine);
       
   148 };
       
   149 
       
   150 /**
       
   151  * Contact-set element
       
   152  */
       
   153 class CCreatorContactSetElement : public CCreatorContactElementBase
       
   154 {
       
   155 public:
       
   156     static CCreatorContactSetElement* NewL(CCreatorEngine* aEngine, const TDesC& aName, const TDesC& aContext = KNullDesC);
       
   157     void ExecuteCommandL();
       
   158     virtual void AddToCacheL();
       
   159 protected:
       
   160     CCreatorContactSetElement(CCreatorEngine* aEngine);
       
   161 };
       
   162 
       
   163 /**
       
   164  * Contact group element
       
   165  */
       
   166 class CCreatorContactGroupElement : public CCreatorContactElementBase
       
   167 {
       
   168 public:
       
   169     static CCreatorContactGroupElement* NewL(CCreatorEngine* aEngine, const TDesC& aName, const TDesC& aContext = KNullDesC);
       
   170     void ExecuteCommandL();
       
   171 protected:
       
   172     CCreatorContactGroupElement(CCreatorEngine* aEngine);
       
   173 };
       
   174 
       
   175 /**
       
   176  * Contact field element
       
   177  */
       
   178 class CCreatorContactFieldElement : public CCreatorScriptElement
       
   179 {
       
   180 public:
       
   181     static CCreatorContactFieldElement* NewL(CCreatorEngine* aEngine, const TDesC& aName, const TDesC& aContext = KNullDesC);
       
   182 protected:
       
   183     CCreatorContactFieldElement(CCreatorEngine* aEngine);
       
   184 };
       
   185 
       
   186 #endif /*CREATORCONTACTELEMENT_H_*/