phonebookui/phonebookservices/inc/cntserviceprovideredit.h
changeset 53 e6aff7b69165
parent 50 77bc263e1626
equal deleted inserted replaced
51:81c360d47083 53:e6aff7b69165
    47      * @param value The value for the field.
    47      * @param value The value for the field.
    48      */
    48      */
    49     void editCreateNew(const QString& definitionName, const QString& value);
    49     void editCreateNew(const QString& definitionName, const QString& value);
    50 
    50 
    51     /**
    51     /**
       
    52      * Launch editor for creating a new contact with a given detail and subtype.
       
    53      * If the given subtype string is empty, then QContactPhoneNumber::SubTypeMobile is used.
       
    54      * @param definitionName The field type
       
    55      * @param value The value for the field.
       
    56      * @param subType The sub type for the field. (for eg. QContactPhoneNumber::SubTypeLandline)
       
    57      */
       
    58     void editCreateNew(const QString &definitionName, const QString &value, const QString &subType);
       
    59 
       
    60     /**
    52      * Launch editor for creating a new contact based on vCard file indicated in arg.
    61      * Launch editor for creating a new contact based on vCard file indicated in arg.
    53      * @param vCardFile The vCard file name and path.
    62      * @param vCardFile The vCard file name and path.
    54      */
    63      */
    55     void editCreateNewFromVCard(const QString &vCardFile);
    64     void editCreateNewFromVCard(const QString &vCardFile);
    56     
    65     
    66      * @param definitionName The field type
    75      * @param definitionName The field type
    67      * @param value The value for the field.
    76      * @param value The value for the field.
    68      */
    77      */
    69     void editUpdateExisting(const QString &definitionName, const QString &value);
    78     void editUpdateExisting(const QString &definitionName, const QString &value);
    70 
    79 
       
    80     /**
       
    81      * User can first choose a contact, and then an editor is opened.
       
    82      * A new detail is provided by caller and it will be prefilled in the editor.
       
    83      * The detail sub type can also be given.
       
    84      * @param definitionName The field type
       
    85      * @param value The value for the field.
       
    86      * @param subType The sub type for the field. (for eg. QContactPhoneNumber::SubTypeLandline)
       
    87      */
       
    88     void editUpdateExisting(const QString &definitionName, const QString &value, const QString &subType);
       
    89 
    71 private: // from CntAbstractServiceProvider
    90 private: // from CntAbstractServiceProvider
    72     void CompleteServiceAndCloseApp(const QVariant& retValue);
    91     void CompleteServiceAndCloseApp(const QVariant& retValue);
    73 
    92 
    74 private:
    93 private:
    75     CntServices& mServices;
    94     CntServices& mServices;