commands/load/load.cpp
changeset 87 63fd51b1ff80
parent 0 7f656887cf89
equal deleted inserted replaced
86:56b6ee983610 87:63fd51b1ff80
    30 private:
    30 private:
    31 	HBufC* iDllName;
    31 	HBufC* iDllName;
    32 	RArray<TUint> iUids;
    32 	RArray<TUint> iUids;
    33 	TUint iModuleVersion;
    33 	TUint iModuleVersion;
    34 	RLibrary iLibrary;
    34 	RLibrary iLibrary;
       
    35 	TBool iNoWait;
    35 	};
    36 	};
    36 
    37 
    37 
    38 
    38 //
    39 //
    39 // CCmdLoad.
    40 // CCmdLoad.
    89 
    90 
    90 	TFileName file = iLibrary.FileName();
    91 	TFileName file = iLibrary.FileName();
    91 	TUidType uids = iLibrary.Type();
    92 	TUidType uids = iLibrary.Type();
    92 	Printf(_L("Loaded %S\r\n"), &file);
    93 	Printf(_L("Loaded %S\r\n"), &file);
    93 	Printf(_L("Uids: 0x%x, 0x%x, 0x%x\r\n"), uids[0].iUid, uids[1].iUid, uids[2].iUid);
    94 	Printf(_L("Uids: 0x%x, 0x%x, 0x%x\r\n"), uids[0].iUid, uids[1].iUid, uids[2].iUid);
       
    95 
       
    96 	if (iNoWait) Complete(KErrNone);
    94 	}
    97 	}
    95 
    98 
    96 void CCmdLoad::OptionsL(RCommandOptionList& aOptions)
    99 void CCmdLoad::OptionsL(RCommandOptionList& aOptions)
    97 	{
   100 	{
    98 	_LIT(KCmdOptUid, "uid");
   101 	_LIT(KCmdOptUid, "uid");
    99 	aOptions.AppendUintL(iUids, KCmdOptUid);
   102 	aOptions.AppendUintL(iUids, KCmdOptUid);
   100 
   103 
   101 	_LIT(KCmdOptVersion, "version");
   104 	_LIT(KCmdOptVersion, "version");
   102 	aOptions.AppendUintL(iModuleVersion, KCmdOptVersion);
   105 	aOptions.AppendUintL(iModuleVersion, KCmdOptVersion);
       
   106 
       
   107 	_LIT(KCmdOptNoWait, "nowait");
       
   108 	aOptions.AppendBoolL(iNoWait, KCmdOptNoWait);
   103 	}
   109 	}
   104 
   110 
   105 void CCmdLoad::ArgumentsL(RCommandArgumentList& aArguments)
   111 void CCmdLoad::ArgumentsL(RCommandArgumentList& aArguments)
   106 	{
   112 	{
   107 	_LIT(KCmdArgFileName, "dll_name");
   113 	_LIT(KCmdArgFileName, "dll_name");