当前位置: 首页>>代码示例>>C++>>正文


C++ TEntry::IsHidden方法代码示例

本文整理汇总了C++中TEntry::IsHidden方法的典型用法代码示例。如果您正苦于以下问题:C++ TEntry::IsHidden方法的具体用法?C++ TEntry::IsHidden怎么用?C++ TEntry::IsHidden使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TEntry的用法示例。


在下文中一共展示了TEntry::IsHidden方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: fillFromTEntry

void QFileSystemMetaData::fillFromTEntry(const TEntry& entry)
{
    entryFlags &= ~(QFileSystemMetaData::SymbianTEntryFlags);
    knownFlagsMask |= QFileSystemMetaData::SymbianTEntryFlags;
    //Symbian doesn't have unix type file permissions
    entryFlags |= QFileSystemMetaData::ReadPermissions;
    if(!entry.IsReadOnly()) {
        entryFlags |= QFileSystemMetaData::WritePermissions;
    }
    //set the type
    if(entry.IsDir())
        entryFlags |= (QFileSystemMetaData::DirectoryType | QFileSystemMetaData::ExecutePermissions);
    else
        entryFlags |= QFileSystemMetaData::FileType;

    //set the attributes
    entryFlags |= QFileSystemMetaData::ExistsAttribute;
    if(entry.IsHidden())
        entryFlags |= QFileSystemMetaData::HiddenAttribute;

#ifdef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API
    size_ = entry.FileSize();
#else
    size_ = (TUint)(entry.iSize);
#endif

    modificationTime_ = entry.iModified;
}
开发者ID:KDE,项目名称:android-qt,代码行数:28,代码来源:qfilesystemengine_symbian.cpp

示例2: GetPreviousPropertiesL

/**
Save the object properties before moving
*/
void CMTPMoveObject::GetPreviousPropertiesL(const TDesC& aFileName)
{
    OstTraceFunctionEntry0( CMTPMOVEOBJECT_GETPREVIOUSPROPERTIESL_ENTRY );
    LEAVEIFERROR(iFramework.Fs().Modified(aFileName, iPreviousModifiedTime),
                 OstTraceExt1( TRACE_ERROR, CMTPMOVEOBJECT_GETPREVIOUSPROPERTIESL,
                               "Can't get the last modification date and time for %S", aFileName));
    if ( iIsFolder )
    {
        TEntry fileEntry;
        User::LeaveIfError(iFramework.Fs().Entry( aFileName, fileEntry ));
        iIsHidden = fileEntry.IsHidden();
    }
    OstTraceFunctionExit0( CMTPMOVEOBJECT_GETPREVIOUSPROPERTIESL_EXIT );
}
开发者ID:kuailexs,项目名称:symbiandump-mw3,代码行数:17,代码来源:cmtpmoveobject.cpp

示例3: FormatEntry

void FormatEntry(TDes& aBuffer, const TEntry& aEntry)
	{
	_LIT(KEntryDetails,"Entry details: ");
	_LIT(KReadOnly," Read-only");
	_LIT(KHidden," Hidden");
	_LIT(KSystem," System");
	_LIT(KDirectory," Directory");
	_LIT(KArchive," Archive");
	_LIT(KNewLIne,"\n");
	aBuffer.Append(KEntryDetails);
	if(aEntry.IsReadOnly())
		aBuffer.Append(KReadOnly);
	if(aEntry.IsHidden())
		aBuffer.Append(KHidden);
	if(aEntry.IsSystem())
		aBuffer.Append(KSystem);
	if(aEntry.IsDir())
		aBuffer.Append(KDirectory);
	if(aEntry.IsArchive())
		aBuffer.Append(KArchive);		
	aBuffer.Append(KNewLIne);
	}
开发者ID:huellif,项目名称:symbian-example,代码行数:22,代码来源:Attributes.cpp

示例4: DoHandleResponsePhaseL

/**
Apply the references to the specified object
@return EFalse
*/
TBool CMTPSetObjectPropValue::DoHandleResponsePhaseL()
{
    TMTPResponseCode responseCode = EMTPRespCodeInvalidObjectPropFormat;
    TUint32 propCode = Request().Uint32(TMTPTypeRequest::ERequestParameter2);

    switch(propCode)
    {
    case EMTPObjectPropCodeDateModified:
    {
        TTime modifiedTime;
        if( iDpSingletons.MTPUtility().MTPTimeStr2TTime(iMTPTypeString->StringChars(), modifiedTime) )
        {
            iRfs.SetModified( iObjMeta->DesC(CMTPObjectMetaData::ESuid), modifiedTime );
            responseCode = EMTPRespCodeOK;

        }
        else
        {
            responseCode = EMTPRespCodeInvalidObjectPropValue;
        }
    }
    break;
    case EMTPObjectPropCodeHidden:
    {
        if ( EMTPHidden == iMTPTypeUint16.Value())
        {
            TEntry entry;
            User::LeaveIfError(iFramework.Fs().Entry(iObjMeta->DesC(CMTPObjectMetaData::ESuid), entry));
            if ( !entry.IsHidden())
            {
                entry.iAtt &= ~KEntryAttHidden;
                entry.iAtt |= KEntryAttHidden;
                User::LeaveIfError(iFramework.Fs().SetAtt(iObjMeta->DesC(CMTPObjectMetaData::ESuid), entry.iAtt, ~entry.iAtt));
            }
            responseCode = EMTPRespCodeOK;
        }
        else if ( EMTPVisible == iMTPTypeUint16.Value())
        {
            TEntry entry;
            User::LeaveIfError(iFramework.Fs().Entry(iObjMeta->DesC(CMTPObjectMetaData::ESuid), entry));
            if ( entry.IsHidden())
            {
                entry.iAtt &= ~KEntryAttHidden;
                User::LeaveIfError(iFramework.Fs().SetAtt(iObjMeta->DesC(CMTPObjectMetaData::ESuid), entry.iAtt, ~entry.iAtt));
            }
            responseCode = EMTPRespCodeOK;
        }
        else
        {
            responseCode = EMTPRespCodeInvalidObjectPropValue;
        }
    }
    break;
    case EMTPObjectPropCodeObjectFileName:
    {

        TRAPD(err, iDpSingletons.MTPUtility().RenameObjectL(iObjMeta->Uint(CMTPObjectMetaData::EHandle),iMTPTypeString->StringChars())) ;
        if( KErrNone == err )
        {
            responseCode = EMTPRespCodeOK;
        }
        else if(KErrNotFound == err)
        {
            responseCode = EMTPRespCodeInvalidObjectHandle;
        }
        else if( KErrAlreadyExists == err)
        {
            responseCode = EMTPRespCodeInvalidObjectPropValue;
        }
        else
        {
            responseCode = EMTPRespCodeAccessDenied;
        }
    }
    break;
    case EMTPObjectPropCodeName:
    {
        //Might need to consider to save this name into meta-data base.
        //Notify all the Data Providers if the Owner of the object is DeviceDP
        const TDesC& name = iMTPTypeString->StringChars();
        if(name != iFileEntry.iName)
        {
            iObjMeta->SetDesCL( CMTPObjectMetaData::EName, name);
            iFramework.ObjectMgr().ModifyObjectL(*iObjMeta);
        }
        responseCode = EMTPRespCodeOK;
    }
    break;
    case EMTPObjectPropCodeNonConsumable:
    {
        iObjMeta->SetUint( CMTPObjectMetaData::ENonConsumable, iMTPTypeUint8.Value());
        iFramework.ObjectMgr().ModifyObjectL(*iObjMeta);
        responseCode = EMTPRespCodeOK;
    }
    break;
    case EMTPObjectPropCodeAssociationType:
//.........这里部分代码省略.........
开发者ID:kuailexs,项目名称:symbiandump-mw3,代码行数:101,代码来源:cmtpsetobjectpropvalue.cpp


注:本文中的TEntry::IsHidden方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。