Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

c++ - NetworkManager and Qt Problem -


i still new using qt4/dbus, , trying list of acccess points qt api send/receive dbus messeges. got following error:

org.freedesktop.dbus.error.unknownmethod method "getaccesspoint" signature "" on interface "org.freedesktop.networkmanager.device.wireless" doesn't exist 

the code is:

qstringlist *netlist = new qstringlist();     qdbusconnection sysbus = qdbusconnection::systembus();     qdbusinterface callnm("org.freedesktop.networkmanager","/org/freedesktop/networkmanager","org.freedesktop.networkmanager.device.wireless",sysbus);     if(callnm.isvalid())     {         qdbusmessage query= callnm.call("getaccesspoints");         if(query.type() == qdbusmessage::replymessage)         {              qdbusargument arg = query.arguments().at(0).value<qdbusargument>();             arg.beginarray();             while(!arg.atend())             {                                 qstring element = qdbus_cast<qstring>(arg);                 netlist->append(element);             }             arg.endarray();         }else{             std::cout<< query.errorname().tostdstring() << std::endl;             std::cout<< query.errormessage().tostdstring() << std::endl;         }         int x= netlist->size();         for(int y=0; y< x ;y++)         {             widget.avail_nets->additem(netlist->at(y)); // print gui stringlist array         }      }else{             std::cout<<"fail" << std::endl;     } 

whats wrong?my naming correct , following exact specs here

the method name getaccesspoints.

while error is:

org.freedesktop.dbus.error.unknownmethod method "getaccesspoint" signature "" on interface "org.freedesktop.networkmanager.device.wireless" doesn't exist

highlight on "getaccesspoint". might have misspelled method name in code, although code pasted here uses correct method name, maybe fixed , forgot rebuild or clean project?


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -