Advertisement
Guest User

Untitled

a guest
Nov 11th, 2012
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 4.72 KB | None | 0 0
  1.  
  2.     //ListItem* find(const QString &id) const;
  3.     //QModelIndex indexFromItem( const ListItem* item) const;
  4.     Q_INVOKABLE void clear();
  5.     QHash<int, QByteArray> roleNames() const;
  6.     QHash<int, QByteArray> setupRoleNames(QHash<int, QByteArray> roles) const;
  7. private slots:
  8.     void handleItemChange();
  9.  
  10. private:
  11.     QHash<int, QByteArray> roles;
  12.     QList<ItemArrayType> itemList;
  13.  
  14.     enum Roles {
  15.       RoleGetApplicationData = Qt::UserRole+1,
  16.       RoleGetAttributeSetArray,
  17.       RoleGetAttributeArray,
  18.       RoleGetLookupAttributeArray,
  19.       RoleGetAutoPay,
  20.       RoleGetPaymentDetails,
  21.       RoleGetBiddingDetails,
  22.       RoleGetMotorsGermanySearchable,
  23.       RoleGetBuyerProtection,
  24.       RoleGetBuyItNowPrice,
  25.       RoleGetCategoryMappingAllowed,
  26.       RoleGetCharity,
  27.       RoleGetCountry,
  28.       RoleGetCrossPromotion,
  29.       RoleGetCurrency,
  30.       RoleGetDescription,
  31.       RoleGetDescriptionReviseMode,
  32.       RoleGetDistance,
  33.       RoleGetGiftIcon,
  34.       RoleGetGiftServices,
  35.       RoleGetHitCounter,
  36.       RoleGetItemID,
  37.       RoleGetListingDetails,
  38.       RoleGetListingDesigner,
  39.       RoleGetListingDuration,
  40.       RoleGetListingEnhancement,
  41.       RoleGetListingType,
  42.       RoleGetLocation,
  43.       RoleGetLotSize,
  44.       RoleGetPartnerCode,
  45.       RoleGetPartnerName,
  46.       RoleGetPaymentMethods,
  47.       RoleGetPayPalEmailAddress,
  48.       RoleGetPrimaryCategory,
  49.       RoleGetPrivateListing,
  50.       RoleGetProductListingDetails,
  51.       RoleGetQuantity,
  52.       RoleGetPrivateNotes,
  53.       RoleGetRegionID,
  54.       RoleGetRelistLink,
  55.       RoleGetReservePrice,
  56.       RoleGetReviseStatus,
  57.       RoleGetScheduleTime,
  58.       RoleGetSecondaryCategory,
  59.       RoleGetFreeAddedCategory,
  60.       RoleGetSeller,
  61.       RoleGetSellingStatus,
  62.       RoleGetShippingDetails,
  63.       RoleGetShipToLocations,
  64.       RoleGetSite,
  65.       RoleGetStartPrice,
  66.       RoleGetStorefront,
  67.       RoleGetSubTitle,
  68.       RoleGetTimeLeft,
  69.       RoleGetTitle,
  70.       RoleGetUUID,
  71.       RoleGetVATDetails,
  72.       RoleGetSellerVacationNote,
  73.       RoleGetWatchCount,
  74.       RoleGetHitCount,
  75.       RoleGetDisableBuyerRequirements,
  76.       RoleGetBestOfferDetails,
  77.       RoleGetLocationDefaulted,
  78.       RoleGetThirdPartyCheckout,
  79.       RoleGetUseTaxTable,
  80.       RoleGetGetItFast,
  81.       RoleGetBuyerResponsibleForShipping,
  82.       RoleGetLimitedWarrantyEligible,
  83.       RoleGetEBayNotes,
  84.       RoleGetQuestionCount,
  85.       RoleGetRelisted,
  86.       RoleGetQuantityAvailable,
  87.       RoleGetSKU,
  88.       RoleGetCategoryBasedAttributesPrefill,
  89.       RoleGetSearchDetails,
  90.       RoleGetPostalCode,
  91.       RoleGetShippingTermsInDescription,
  92.       RoleGetExternalProductID,
  93.       RoleGetSellerInventoryID,
  94.       RoleGetPictureDetails,
  95.       RoleGetDispatchTimeMax,
  96.       RoleGetSkypeEnabled,
  97.       RoleGetSkypeID,
  98.       RoleGetSkypeContactOption,
  99.       RoleGetBestOfferEnabled,
  100.       RoleGetLocalListing,
  101.       RoleGetThirdPartyCheckoutIntegration,
  102.       RoleGetListingCheckoutRedirectPreference,
  103.       RoleGetSellerContactDetails,
  104.       RoleGetTotalQuestionCount,
  105.       RoleGetProxyItem,
  106.       RoleGetExtendedSellerContactDetails,
  107.       RoleGetLeadCount,
  108.       RoleGetNewLeadCount,
  109.       RoleGetItemSpecifics,
  110.       RoleGetGroupCategoryID,
  111.       RoleGetClassifiedAdPayPerLeadFee,
  112.       RoleGetBidGroupItem,
  113.       RoleGetApplyBuyerProtection,
  114.       RoleGetListingSubtype2,
  115.       RoleGetMechanicalCheckAccepted,
  116.       RoleGetUpdateSellerInfo,
  117.       RoleGetUpdateReturnPolicy,
  118.       RoleGetItemPolicyViolation,
  119.       RoleGetCrossBorderTrade,
  120.       RoleGetBusinessSellerDetails,
  121.       RoleGetBuyerGuaranteePrice,
  122.       RoleGetBuyerRequirementDetails,
  123.       RoleGetReturnPolicy,
  124.       RoleGetPaymentAllowedSite,
  125.       RoleGetInventoryTrackingMethod,
  126.       RoleGetIntegratedMerchantCreditCardEnabled,
  127.       RoleGetVariations,
  128.       RoleGetItemCompatibilityList,
  129.       RoleGetItemCompatibilityCount,
  130.       RoleGetConditionID,
  131.       RoleGetConditionDescription,
  132.       RoleGetConditionDisplayName,
  133.       RoleGetTaxCategory,
  134.       RoleGetQuantityAvailableHint,
  135.       RoleGetQuantityThreshold,
  136.       RoleGetPostCheckoutExperienceEnabled,
  137.       RoleGetDiscountPriceInfo,
  138.       RoleGetUseRecommendedProduct,
  139.       RoleGetSellerProvidedTitle,
  140.       RoleGetVIN,
  141.       RoleGetVINLink,
  142.       RoleGetVRM,
  143.       RoleGetVRMLink,
  144.       RoleGetQuantityInfo,
  145.       RoleGetSellerProfiles,
  146.       RoleGetShippingPackageDetails,
  147.       RoleGetTopRatedListing,
  148.       RoleGetFloorPrice,
  149.       RoleGetCeilingPrice,
  150.       RoleGetQuantityRestrictionPerBuyer,
  151.       RoleGetIsIntermediatedShippingEligible,
  152.       RoleGetUnitInfo,
  153.       RoleGetRelistParentID,
  154.       RoleGetConditionDefinition,
  155.       RoleGetExtraElement
  156.   };
  157. };
  158.  
  159. #endif // ABSTRACTMYEBAYLISTMODEL_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement